[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / test-869.cs
index e0f01677b256bd12d1b8b51ef15e5cc5cb52c7f2..a0b22419ddc90c93d199577560ef93431b884ee8 100644 (file)
@@ -20,6 +20,13 @@ public enum E
        Item = 2
 }
 
+enum E2
+{
+       A = 0,
+       B,
+       C
+}
+
 class FooClass
 {
        public static int Main ()
@@ -34,6 +41,9 @@ class FooClass
                if (res != C.Token)
                        return 2;
 
+               E2 e2 = E2.C;
+
+               int day1 = e2 - E2.A;
                return 0;       
        }
 }
\ No newline at end of file