[msbuild] Bump msbuild, fix build breakage
[mono.git] / mcs / tests / test-504.cs
index c1d1f3210e1bcedc74a08aec478f6ee5f227d97e..d99207e30c182c16e4cddf177e5f167281d28bd7 100644 (file)
@@ -3,6 +3,12 @@
 
 using System;
 
+public enum FooEnum
+{
+       One,
+       Two
+};
+
 class Foo
 {
        public static int y = 1;
@@ -41,4 +47,22 @@ class Foo
 
                return s;
        }
+
+       const FooEnum foo = FooEnum.Two;
+
+       static void Test_3 ()
+       {
+               object obj;
+
+               switch (foo) {
+               case FooEnum.One:
+                       obj = new object ();
+                       break;
+               case FooEnum.Two:
+                       obj = new object ();
+                       break;
+               }
+
+               Console.WriteLine (obj);
+       }
 }