summaryrefslogtreecommitdiff
path: root/mcs/tests/test-873.cs
diff options
context:
space:
mode:
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 0000000000..abe3b3b4ff
--- /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;
+ }
+}
+