[mcs] Constant folding of enum constant and literal was using wrong operands. Fixes...
[mono.git] / mcs / tests / test-99.cs
index caf2f6742131671867a70c9d63d27cc0f16503ff..036850e34bbd396b89818a143a148ddff87b2ffd 100644 (file)
@@ -13,7 +13,7 @@ class X {
                B
        }
        
-       static int Main ()
+       public static int Main ()
        {
                int v = 1;
                object foo = (v + A.a);
@@ -41,6 +41,10 @@ class X {
                        return 3;
                if (Test.A == Test.B)
                        return 4;
+
+               const A e2 = 3 - A.b;
+               if (e2 != A.a)
+                       return 5;
                
                return 0;
        }