Author: marek
Date: 2005-03-22 06:01:33 -0500 (Tue, 22 Mar 2005)
New Revision: 42096

Added:
   trunk/mcs/errors/cs1717-2.cs
   trunk/mcs/errors/cs1717-3.cs
   trunk/mcs/errors/cs1717-4.cs
   trunk/mcs/errors/cs1717.cs
Modified:
   trunk/mcs/errors/gmcs-expect-wrong-error
Log:
new error tests

Added: trunk/mcs/errors/cs1717-2.cs
===================================================================
--- trunk/mcs/errors/cs1717-2.cs        2005-03-22 10:59:21 UTC (rev 42095)
+++ trunk/mcs/errors/cs1717-2.cs        2005-03-22 11:01:33 UTC (rev 42096)
@@ -0,0 +1,12 @@
+// cs1717.cs: Assignment made to same variable; did you mean to assign 
something else?
+// Line: 9
+// Compiler options: -warnaserror -warn:3
+
+class A
+{    
+    void B ()
+    {
+       int l = 3;
+       l = l;
+    }
+}
\ No newline at end of file

Added: trunk/mcs/errors/cs1717-3.cs
===================================================================
--- trunk/mcs/errors/cs1717-3.cs        2005-03-22 10:59:21 UTC (rev 42095)
+++ trunk/mcs/errors/cs1717-3.cs        2005-03-22 11:01:33 UTC (rev 42096)
@@ -0,0 +1,13 @@
+// cs1717.cs: Assignment made to same variable; did you mean to assign 
something else?
+// Line: 9
+// Compiler options: -warnaserror -warn:3
+
+class A
+{    
+    int i;
+    
+    void C ()
+    {
+       i = i;
+    }
+}
\ No newline at end of file

Added: trunk/mcs/errors/cs1717-4.cs
===================================================================
--- trunk/mcs/errors/cs1717-4.cs        2005-03-22 10:59:21 UTC (rev 42095)
+++ trunk/mcs/errors/cs1717-4.cs        2005-03-22 11:01:33 UTC (rev 42096)
@@ -0,0 +1,13 @@
+// cs1717.cs: Assignment made to same variable; did you mean to assign 
something else?
+// Line: 9
+// Compiler options: -warnaserror -warn:3
+
+class A
+{    
+    static int Value;
+    
+    void D ()
+    {
+       A.Value = Value;
+    }
+}
\ No newline at end of file

Added: trunk/mcs/errors/cs1717.cs
===================================================================
--- trunk/mcs/errors/cs1717.cs  2005-03-22 10:59:21 UTC (rev 42095)
+++ trunk/mcs/errors/cs1717.cs  2005-03-22 11:01:33 UTC (rev 42096)
@@ -0,0 +1,11 @@
+// cs1717.cs: Assignment made to same variable; did you mean to assign 
something else?
+// Line: 9
+// Compiler options: -warnaserror -warn:3
+
+class A
+{    
+    public A (int a)
+    {
+       a = a;
+    }
+}
\ No newline at end of file

Modified: trunk/mcs/errors/gmcs-expect-wrong-error
===================================================================
--- trunk/mcs/errors/gmcs-expect-wrong-error    2005-03-22 10:59:21 UTC (rev 
42095)
+++ trunk/mcs/errors/gmcs-expect-wrong-error    2005-03-22 11:01:33 UTC (rev 
42096)
@@ -127,5 +127,9 @@
 cs1677.cs
 cs1708.cs
 cs1715.cs
+cs1717.cs
+cs1717-2.cs
+cs1717-3.cs
+cs1717-4.cs
 cs2007.cs
 cs3003-5.cs

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to