Author: marek
Date: 2005-03-04 10:08:09 -0500 (Fri, 04 Mar 2005)
New Revision: 41443

Added:
   trunk/mcs/errors/cs0628-3.cs
   trunk/mcs/errors/cs0647-15.cs
   trunk/mcs/errors/cs1535.cs
   trunk/mcs/errors/cs1537.cs
   trunk/mcs/errors/cs1629-2.cs
   trunk/mcs/errors/cs1629.cs
   trunk/mcs/errors/cs1633.cs
   trunk/mcs/errors/cs1635.cs
Modified:
   trunk/mcs/errors/mcs-expect-no-error
   trunk/mcs/errors/mcs-expect-wrong-error
Log:
more tests + update

Added: trunk/mcs/errors/cs0628-3.cs
===================================================================
--- trunk/mcs/errors/cs0628-3.cs        2005-03-04 15:03:31 UTC (rev 41442)
+++ trunk/mcs/errors/cs0628-3.cs        2005-03-04 15:08:09 UTC (rev 41443)
@@ -0,0 +1,9 @@
+// cs0628.cs: 'B._a': new protected member declared in static class
+// Line: 6
+// Compiler options: -warnaserror -warn:4
+
+public static class B
+{
+       protected static object _a = null;
+                   
+}

Added: trunk/mcs/errors/cs0647-15.cs
===================================================================
--- trunk/mcs/errors/cs0647-15.cs       2005-03-04 15:03:31 UTC (rev 41442)
+++ trunk/mcs/errors/cs0647-15.cs       2005-03-04 15:08:09 UTC (rev 41443)
@@ -0,0 +1,12 @@
+// cs0647.cs: Error emitting 'MethodImplAttribute' attribute because 
'Incorrect argument value'
+// Line: 8
+
+using System.Runtime.CompilerServices;
+
+class Test
+{
+       [MethodImplAttribute(444)]
+       public void test ()
+       {
+       }
+}
\ No newline at end of file

Added: trunk/mcs/errors/cs1535.cs
===================================================================
--- trunk/mcs/errors/cs1535.cs  2005-03-04 15:03:31 UTC (rev 41442)
+++ trunk/mcs/errors/cs1535.cs  2005-03-04 15:08:09 UTC (rev 41443)
@@ -0,0 +1,10 @@
+// cs01535.cs: Overloaded unary operator '--' takes one parameter
+// Line: 6
+
+class C
+{
+       public static C operator -- ()
+       {
+               return null;
+       }
+}

Added: trunk/mcs/errors/cs1537.cs
===================================================================
--- trunk/mcs/errors/cs1537.cs  2005-03-04 15:03:31 UTC (rev 41442)
+++ trunk/mcs/errors/cs1537.cs  2005-03-04 15:08:09 UTC (rev 41443)
@@ -0,0 +1,6 @@
+// cs1537: The using alias 'A' appeared previously in this namespace
+// Line: 7
+
+using A = System;
+using A = System;
+

Added: trunk/mcs/errors/cs1629-2.cs
===================================================================
--- trunk/mcs/errors/cs1629-2.cs        2005-03-04 15:03:31 UTC (rev 41442)
+++ trunk/mcs/errors/cs1629-2.cs        2005-03-04 15:08:09 UTC (rev 41443)
@@ -0,0 +1,15 @@
+// cs1629.cs: Unsafe code may not appear in iterators
+// Line: 8
+// Compiler options: -unsafe
+
+using System.Collections;
+
+class X {
+       static IEnumerator GetIt ()
+       {
+           unsafe {
+               yield return 1;
+           }
+       }
+       
+}
\ No newline at end of file

Added: trunk/mcs/errors/cs1629.cs
===================================================================
--- trunk/mcs/errors/cs1629.cs  2005-03-04 15:03:31 UTC (rev 41442)
+++ trunk/mcs/errors/cs1629.cs  2005-03-04 15:08:09 UTC (rev 41443)
@@ -0,0 +1,13 @@
+// cs1629.cs: Unsafe code may not appear in iterators
+// Line: 8
+// Compiler options: -unsafe
+
+using System.Collections;
+
+class X {
+       static unsafe IEnumerator GetIt ()
+       {
+           yield return 1;
+       }
+       
+}
\ No newline at end of file

Added: trunk/mcs/errors/cs1633.cs
===================================================================
--- trunk/mcs/errors/cs1633.cs  2005-03-04 15:03:31 UTC (rev 41442)
+++ trunk/mcs/errors/cs1633.cs  2005-03-04 15:08:09 UTC (rev 41443)
@@ -0,0 +1,5 @@
+// cs1633.cs: Unrecognized #pragma directive
+// Line: 5
+// Compiler options: -warnaserror
+
+#pragma not exist

Added: trunk/mcs/errors/cs1635.cs
===================================================================
--- trunk/mcs/errors/cs1635.cs  2005-03-04 15:03:31 UTC (rev 41442)
+++ trunk/mcs/errors/cs1635.cs  2005-03-04 15:08:09 UTC (rev 41443)
@@ -0,0 +1,13 @@
+// cs1635.cs: Cannot restore warning 'CS0219' because it was disabled globally
+// Line: 11
+// Compiler options: -nowarn:219 -warnaserror
+
+class C
+{
+    public static void Main ()
+    {
+#pragma warning disable 219
+       int o = 4;
+#pragma warning restore 219
+    }
+}

Modified: trunk/mcs/errors/mcs-expect-no-error
===================================================================
--- trunk/mcs/errors/mcs-expect-no-error        2005-03-04 15:03:31 UTC (rev 
41442)
+++ trunk/mcs/errors/mcs-expect-no-error        2005-03-04 15:08:09 UTC (rev 
41443)
@@ -15,7 +15,7 @@
 cs0576.cs
 cs0642-2.cs
 cs0642.cs
-cs0647.cs # corlib bug
+cs0647.cs # corlib bug #73142
 cs0652.cs
 cs1035.cs
 cs2023.cs

Modified: trunk/mcs/errors/mcs-expect-wrong-error
===================================================================
--- trunk/mcs/errors/mcs-expect-wrong-error     2005-03-04 15:03:31 UTC (rev 
41442)
+++ trunk/mcs/errors/mcs-expect-wrong-error     2005-03-04 15:08:09 UTC (rev 
41443)
@@ -30,6 +30,7 @@
 cs0642-4.cs
 cs0642-5.cs
 cs0642-6.cs
+cs0647-15.cs # corlib bug 73143
 cs0654.cs
 cs0681.cs
 cs0683.cs
@@ -39,7 +40,7 @@
 cs1518.cs
 cs1525.cs
 cs1528.cs
-cs1534.cs
+cs1535.cs
 cs1552.cs
 cs1586.cs
 cs1605.cs

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

Reply via email to