Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2013-10-25 12:40:44 +0400
committerMarek Safar <marek.safar@gmail.com>2013-10-25 12:42:57 +0400
commitf4aa1c4149c83106075871486ac6eaebdeba6177 (patch)
tree63b59be5d352bf1c220ff2da27ed666a080c5fae /mcs/tests/test-873.cs
parent913a2d5fbd78b04bee5bc32d0a02d207ddccd543 (diff)
Add new tests
Diffstat (limited to 'mcs/tests/test-873.cs')
-rw-r--r--mcs/tests/test-873.cs28
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;
+ }
+}
+