diff options
author | Martin Baulig <martin@novell.com> | 2004-05-23 21:56:56 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2004-05-23 21:56:56 +0400 |
commit | cc43a724b5376073f0d64f58cbaeee46f0dd0ffc (patch) | |
tree | 33c7f3eb383c454085d5f0aaec8a0010f1c9f57a /mcs/tests/test-154.cs | |
parent | 518606c46fc43fca17eb694985eadcfcee2c3e34 (diff) |
2004-05-23 Martin Baulig <martin@ximian.com>
* test-154.cs: Added testcase for #58322.
svn path=/trunk/mcs/; revision=27922
Diffstat (limited to 'mcs/tests/test-154.cs')
-rw-r--r-- | mcs/tests/test-154.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mcs/tests/test-154.cs b/mcs/tests/test-154.cs index a336c03585f..5dcb465512a 100644 --- a/mcs/tests/test-154.cs +++ b/mcs/tests/test-154.cs @@ -551,4 +551,24 @@ public class X Console.WriteLine (myVar); } + // + // Bug 58322 + // + public static void test37 () + { + int x = 0; + int y = 0; + switch (x) { + case 0: + switch (y) { + case 0: + goto k_0; + default: + throw new Exception (); + } + } + + k_0: + ; + } } |