X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ftests%2Fgtest-284.cs;h=e5aac17e1a4a32f7dbeaf68b1b0f7de3221c4067;hb=57e7f36a44b06702d02aadcb39fd25defba424f0;hp=eb9df3ccf56ef633c7ed552fad258919903dcfa3;hpb=e51a9b6ba1a93bc981639a706c93bee413099fd6;p=mono.git diff --git a/mcs/tests/gtest-284.cs b/mcs/tests/gtest-284.cs index eb9df3ccf56..e5aac17e1a4 100644 --- a/mcs/tests/gtest-284.cs +++ b/mcs/tests/gtest-284.cs @@ -147,6 +147,10 @@ public static class InterfaceTester static readonly Type generic_icollection_type; static readonly Type generic_ienumerable_type; static readonly Type icloneable_type; +#if NET_4_0 + static readonly Type istructuralequatable_type = typeof (IStructuralEquatable); + static readonly Type istructuralcomparable_type = typeof (IStructuralComparable); +#endif static InterfaceTester () { @@ -172,6 +176,10 @@ public static class InterfaceTester ifaces.Add (icollection_type, State.Missing); ifaces.Add (ienumerable_type, State.Missing); ifaces.Add (icloneable_type, State.Missing); +#if NET_4_0 + ifaces.Add (istructuralequatable_type, State.Missing); + ifaces.Add (istructuralcomparable_type, State.Missing); +#endif Type array_type = t.MakeArrayType (); @@ -218,11 +226,11 @@ public static class InterfaceTester public static int Test () { - int result = Test (typeof (X), typeof (X), typeof (Y), typeof (object)); + int result = Test (typeof (X), typeof (X)); if (result != 0) return result; - result = Test (typeof (Y), typeof (Y), typeof (object)); + result = Test (typeof (Y), typeof (Y)); if (result != 0) return 100 + result; @@ -234,27 +242,27 @@ public static class InterfaceTester if (result != 0) return 300 + result; - result = Test (typeof (int), typeof (int), typeof (uint)); + result = Test (typeof (int), typeof (int)); if (result != 0) return 400 + result; - result = Test (typeof (uint), typeof (int), typeof (uint)); + result = Test (typeof (uint), typeof (uint)); if (result != 0) return 500 + result; - result = Test (typeof (long), typeof (long), typeof (ulong)); + result = Test (typeof (long), typeof (long)); if (result != 0) return 600 + result; - result = Test (typeof (ulong), typeof (long), typeof (ulong)); + result = Test (typeof (ulong), typeof (ulong)); if (result != 0) return 700 + result; - result = Test (typeof (short), typeof (short), typeof (ushort)); + result = Test (typeof (short), typeof (short)); if (result != 0) return 800 + result; - result = Test (typeof (ushort), typeof (short), typeof (ushort)); + result = Test (typeof (ushort), typeof (ushort)); if (result != 0) return 900 + result;