X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmini%2Faot-tests.cs;h=82fb3ae674dfe4030e7ff8b9fe35be8cb2c56d12;hb=HEAD;hp=36c7a15a3e8fe91e1c44ebe8d40cf6546c441994;hpb=82128fe28f591f90b46e468d47d54ff7b9ff9561;p=mono.git diff --git a/mono/mini/aot-tests.cs b/mono/mini/aot-tests.cs index 36c7a15a3e8..82fb3ae674d 100644 --- a/mono/mini/aot-tests.cs +++ b/mono/mini/aot-tests.cs @@ -4,6 +4,7 @@ using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; +using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; @@ -25,6 +26,7 @@ class Tests public delegate void ArrayDelegate (int[,] arr); + [Category ("!WASM")] //Requires a working threadpool static int test_0_array_delegate_full_aot () { ArrayDelegate d = delegate (int[,] arr) { }; @@ -259,6 +261,7 @@ class Tests [Category ("DYNCALL")] [Category ("!FULLAOT-AMD64")] + [Category ("!INTERPRETER")] //known bug in the interpreter public static int test_0_dyncall_nullable () { int? v; @@ -409,6 +412,7 @@ class Tests [Category ("DYNCALL")] [Category ("!FULLAOT-AMD64")] + [Category ("!INTERPRETER")] //known bug in the interpreter public static int test_0_large_nullable_invoke () { var s = new LargeStruct () { a = 1, b = 2, c = 3, d = 4 }; @@ -485,4 +489,16 @@ class Tests m.Invoke (arr, null); return 0; } + + public static int test_0_fault_clauses () { + object [] data = { 1, 2, 3 }; + int [] expected = { 1, 2, 3 }; + + try { + Action d = delegate () { data.Cast ().GetEnumerator ().MoveNext (); }; + d (); + } catch (Exception ex) { + } + return 0; + } }