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:
authorAlejandro Sánchez Acosta <asanchez@mono-cvs.ximian.com>2002-12-02 02:57:15 +0300
committerAlejandro Sánchez Acosta <asanchez@mono-cvs.ximian.com>2002-12-02 02:57:15 +0300
commitfc8cfc0e64975704ca17a420624d35c4cc52faed (patch)
tree19c827c3f6e1edb6b3cf1959e70dc9794825a315 /mcs/errors/cs0140.cs
parentebe6e144bc4428ffbcb5e52d2177d8b0d28fdec4 (diff)
Added new tests.
svn path=/trunk/mcs/; revision=9324
Diffstat (limited to 'mcs/errors/cs0140.cs')
-rw-r--r--mcs/errors/cs0140.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/errors/cs0140.cs b/mcs/errors/cs0140.cs
new file mode 100644
index 00000000000..03a2fc55af2
--- /dev/null
+++ b/mcs/errors/cs0140.cs
@@ -0,0 +1,17 @@
+// cs0140: A duplicated Label.
+// Line: 11
+
+namespace cs0140Test
+{
+ public class A
+ {
+ static int Main ()
+ {
+ L1: int a=0;
+ L1: a++;
+ if (a < 3)
+ goto L1;
+ return 0;
+ }
+ }
+}