X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmini%2Fgenerics.cs;h=018619449191a8cf24899b7d1cba6f55519a85d0;hb=dbaca79c4797350ac59026278561e325a86b7a40;hp=04b4e544933452b1f4e56149c235a69c492c0598;hpb=cafd968e0c109a7604217f5c6ebf433ef6d915a8;p=mono.git diff --git a/mono/mini/generics.cs b/mono/mini/generics.cs index 04b4e544933..01861944919 100644 --- a/mono/mini/generics.cs +++ b/mono/mini/generics.cs @@ -898,6 +898,7 @@ class Tests } [Category ("!FULLAOT")] + [Category ("!BITCODE")] public static int test_0_regress_668095_synchronized_gshared () { return DoSomething (new DefaultRetriever ()); } @@ -990,6 +991,19 @@ class Tests return 0; } + class AClass { + } + + class BClass : AClass { + } + + public static int test_0_fullaot_variant_iface () { + var arr = new BClass [10]; + var enumerable = (IEnumerable)arr; + enumerable.GetEnumerator (); + return 0; + } + struct Record : Foo2.IRecord { int counter; int Foo2.IRecord.DoSomething () { @@ -1231,6 +1245,33 @@ class Tests test("a", "b", "c", "d", "e", "f", "g", "h"); return delegate_8_args_res == "h" ? 0 : 1; } + + static void throw_catch_t () where T: Exception { + try { + throw new NotSupportedException (); + } catch (T) { + } + } + + public static int test_0_gshared_catch_open_type () { + throw_catch_t (); + return 0; + } + + class ThrowClass where T: Exception { + public void throw_catch_t () { + try { + throw new NotSupportedException (); + } catch (T) { + } + } + } + + public static int test_0_gshared_catch_open_type_instance () { + var c = new ThrowClass (); + c.throw_catch_t (); + return 0; + } } #if !__MOBILE__