Don't use a fixed file name for LLVM compilation.
[mono.git] / mono / mini / generics.cs
index b04319a467b527729e8d20726e5f6963a1ee9666..19282df514e273e5f2da45e6208e835255b34b58 100644 (file)
@@ -959,9 +959,25 @@ class Tests {
                }
        }
 
+       class Foo3<T> where T : IComparable {
+               public static int CompareTo (T[] t) {
+                       // This is a constrained call to Enum.CompareTo ()
+                       return t[0].CompareTo (t [0]);
+               }
+       }
+
        public static int test_1_regress_constrained_iface_call_7571 () {
         var r = new Record [10];
         Foo2<Record>.Extract (r);
                return Foo2<Record>.Extract (r);
        }
+
+       enum ConstrainedEnum {
+               Val = 1
+       }
+
+       public static int test_0_regress_constrained_iface_call_enum () {
+               var r = new ConstrainedEnum [10];
+               return Foo3<ConstrainedEnum>.CompareTo (r);
+       }
 }