diff options
author | Marek Safar <marek.safar@gmail.com> | 2013-10-25 12:40:44 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2013-10-25 12:42:57 +0400 |
commit | f4aa1c4149c83106075871486ac6eaebdeba6177 (patch) | |
tree | 63b59be5d352bf1c220ff2da27ed666a080c5fae /mcs/tests/test-873.cs | |
parent | 913a2d5fbd78b04bee5bc32d0a02d207ddccd543 (diff) |
Add new tests
Diffstat (limited to 'mcs/tests/test-873.cs')
-rw-r--r-- | mcs/tests/test-873.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mcs/tests/test-873.cs b/mcs/tests/test-873.cs new file mode 100644 index 00000000000..abe3b3b4ffa --- /dev/null +++ b/mcs/tests/test-873.cs @@ -0,0 +1,28 @@ +using System; + +class Program +{ + static int Main () + { + int foo = 9; + + switch (foo) { + case 1: + gotoTarget: + { + return 0; + } + default: + { + if (foo != 0) { + goto gotoTarget; + } + + break; + } + } + + return 1; + } +} + |