Added new tests.
authorAlejandro Sánchez Acosta <asanchez@mono-cvs.ximian.com>
Sun, 1 Dec 2002 23:57:15 +0000 (23:57 -0000)
committerAlejandro Sánchez Acosta <asanchez@mono-cvs.ximian.com>
Sun, 1 Dec 2002 23:57:15 +0000 (23:57 -0000)
svn path=/trunk/mcs/; revision=9324

mcs/errors/ChangeLog
mcs/errors/cs0140.cs [new file with mode: 0644]
mcs/errors/cs0143.cs [new file with mode: 0644]

index bb9de4e030b186007f07c9980444ae3cfdab1094..fc9dbf24c9122cb92f3a2d72bb8c5be56d088630 100644 (file)
@@ -1,3 +1,8 @@
+2002-12-01  Alejandro Sánchez Acosta  <raciel@es.gnu.org>
+
+       * cs0140.cs,
+         cs0143.cs: New test.
+
 2002-12-01  Alejandro Sánchez Acosta  <raciel@es.gnu.org>
 
        * cs0100.cs,
diff --git a/mcs/errors/cs0140.cs b/mcs/errors/cs0140.cs
new file mode 100644 (file)
index 0000000..03a2fc5
--- /dev/null
@@ -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;
+               }
+       }
+}
diff --git a/mcs/errors/cs0143.cs b/mcs/errors/cs0143.cs
new file mode 100644 (file)
index 0000000..2a44852
--- /dev/null
@@ -0,0 +1,16 @@
+// cs0143: Can't find the constructor for a determinated class.
+// Line: 11 
+
+namespace cs0143Test
+{
+       public class A
+       {
+               static void Main ()
+               {
+                       string b="text";
+                       int c=2;
+                       
+                       A  a = new A (b, c);
+               }
+       }
+}