2004-01-20 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Tue, 20 Jan 2004 20:42:24 +0000 (20:42 -0000)
committerMartin Baulig <martin@novell.com>
Tue, 20 Jan 2004 20:42:24 +0000 (20:42 -0000)
* test-154.cs: Added testcase for bug #46640.

svn path=/trunk/mcs/; revision=22313

mcs/tests/ChangeLog
mcs/tests/test-154.cs

index 0c7b04145f16343b8ed6e45fce3d3fe916fef63b..7d3520c3b0a59c4d09a91ac6bbbb12120ca4cf85 100755 (executable)
@@ -1,3 +1,7 @@
+2004-01-20  Martin Baulig  <martin@ximian.com>
+
+       * test-154.cs: Added testcase for bug #46640.
+
 2004-01-20  Martin Baulig  <martin@ximian.com>
 
        * test-226.cs: New test for #53058.
index 0c2a447bd5ecd78d2f405df74a229db5054042b3..0a1550ca7669a62c8c694bb3b53a764ae4c15045 100644 (file)
@@ -515,4 +515,19 @@ public class X
         end:
                x = y;
        }
+
+       //
+       // Bug 46640
+       //
+       public static void test35 (int a, bool test)
+       {
+               switch (a) {
+               case 3:
+                       if (test)
+                               break;
+                       return;
+               default:
+                       return;
+               }
+       }
 }