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>2010-09-10 21:25:17 +0400
committerMarek Safar <marek.safar@gmail.com>2010-09-10 21:25:17 +0400
commit67a68cb18d60c82cb1efdd32e6544b203e2d183f (patch)
treea955c76fac30a3f4561d15be293732a0818f926e /mcs/tests/test-579.cs
parent009c8b81ba1769d47fc104548b908a9364dc559a (diff)
New test.
Diffstat (limited to 'mcs/tests/test-579.cs')
-rw-r--r--mcs/tests/test-579.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/mcs/tests/test-579.cs b/mcs/tests/test-579.cs
new file mode 100644
index 00000000000..b2e6c68dd31
--- /dev/null
+++ b/mcs/tests/test-579.cs
@@ -0,0 +1,24 @@
+// Compiler options: -warnaserror
+
+public class TestCase
+{
+ static int Main ()
+ {
+ int i = 0;
+ {
+ goto A;
+ A:
+ i += 3;
+ }
+ {
+ goto A;
+ A:
+ i *= 4;
+ }
+
+ if (i != 12)
+ return 1;
+
+ return 0;
+ }
+}