Author: marek
Date: 2005-07-06 08:51:55 -0400 (Wed, 06 Jul 2005)
New Revision: 46992

Added:
   trunk/mcs/errors/cs0101-2.cs
   trunk/mcs/errors/cs0227-2.cs
   trunk/mcs/errors/cs0500-2.cs
   trunk/mcs/errors/cs1530-3.cs
   trunk/mcs/errors/cs1624-2.cs
Modified:
   trunk/mcs/errors/cs0115-4.cs
   trunk/mcs/errors/cs0119.cs
   trunk/mcs/errors/cs0420-2.cs
   trunk/mcs/errors/cs0420.cs
   trunk/mcs/errors/cs1638.cs
   trunk/mcs/errors/known-issues-gmcs
Log:
new tests

Added: trunk/mcs/errors/cs0101-2.cs
===================================================================
--- trunk/mcs/errors/cs0101-2.cs        2005-07-06 12:11:00 UTC (rev 46991)
+++ trunk/mcs/errors/cs0101-2.cs        2005-07-06 12:51:55 UTC (rev 46992)
@@ -0,0 +1,18 @@
+// cs0101.cs: The namespace `AA.VV' already contains a definition for 
`SomeEnum'
+// Line: 10
+using System;
+
+namespace AA {
+       namespace VV {
+               public enum SomeEnum {
+                       Something1,
+                       Something2
+               }
+
+               public enum SomeEnum {
+                       Dog,
+                       Fish,
+                       Cat
+               }
+       }
+}

Modified: trunk/mcs/errors/cs0115-4.cs
===================================================================
--- trunk/mcs/errors/cs0115-4.cs        2005-07-06 12:11:00 UTC (rev 46991)
+++ trunk/mcs/errors/cs0115-4.cs        2005-07-06 12:51:55 UTC (rev 46992)
@@ -14,5 +14,5 @@
                 return 1;
         }
 
-               static void Main () {}
+       static void Main () {}
 }

Modified: trunk/mcs/errors/cs0119.cs
===================================================================
--- trunk/mcs/errors/cs0119.cs  2005-07-06 12:11:00 UTC (rev 46991)
+++ trunk/mcs/errors/cs0119.cs  2005-07-06 12:51:55 UTC (rev 46992)
@@ -1,4 +1,4 @@
-// cs0119.cs: Expression denotes a `method group', where a `variable', 'value' 
or 'type' was expected
+// cs0119.cs: Expression denotes a `method group', where a `variable', `value' 
or `type' was expected
 // Line: 14
 
 using System;

Added: trunk/mcs/errors/cs0227-2.cs
===================================================================
--- trunk/mcs/errors/cs0227-2.cs        2005-07-06 12:11:00 UTC (rev 46991)
+++ trunk/mcs/errors/cs0227-2.cs        2005-07-06 12:51:55 UTC (rev 46992)
@@ -0,0 +1,9 @@
+// cs0227-2.cs: Unsafe code requires the `unsafe' command line option to be 
specified
+// Line: 5
+
+class UnsafeClass {
+        UnsafeClass () 
+       {
+           unsafe {}
+       }
+}

Modified: trunk/mcs/errors/cs0420-2.cs
===================================================================
--- trunk/mcs/errors/cs0420-2.cs        2005-07-06 12:11:00 UTC (rev 46991)
+++ trunk/mcs/errors/cs0420-2.cs        2005-07-06 12:51:55 UTC (rev 46992)
@@ -1,6 +1,6 @@
-// cs0420.cs: 'XX.j': a reference to a volatile field will not be treated as 
volatile
+// cs0420-2.cs: `XX.j': A volatile fields cannot be passed using a ref or out 
parameter
 // Line: 14
-// Compiler options: -unsafe /warnaserror
+// Compiler options: -unsafe /warnaserror /warn:1
 
 unsafe class XX {
        static volatile int j;

Modified: trunk/mcs/errors/cs0420.cs
===================================================================
--- trunk/mcs/errors/cs0420.cs  2005-07-06 12:11:00 UTC (rev 46991)
+++ trunk/mcs/errors/cs0420.cs  2005-07-06 12:51:55 UTC (rev 46992)
@@ -1,6 +1,6 @@
-// cs0420.cs: 'X.j': a reference to a volatile field will not be treated as 
volatile
+// cs0420.cs: `X.j': A volatile fields cannot be passed using a ref or out 
parameter
 // Line: 10
-// Compiler options: -unsafe /warnaserror
+// Compiler options: -unsafe /warnaserror /warn:1
 
 unsafe class X {
        static volatile int j;

Added: trunk/mcs/errors/cs0500-2.cs
===================================================================
--- trunk/mcs/errors/cs0500-2.cs        2005-07-06 12:11:00 UTC (rev 46991)
+++ trunk/mcs/errors/cs0500-2.cs        2005-07-06 12:51:55 UTC (rev 46992)
@@ -0,0 +1,7 @@
+// cs0500.cs: `A.Foo' cannot declare a body because it is marked abstract
+// Line: 5
+
+public abstract class A {
+       public abstract int Foo { get { return 1; } }
+}
+

Added: trunk/mcs/errors/cs1530-3.cs
===================================================================
--- trunk/mcs/errors/cs1530-3.cs        2005-07-06 12:11:00 UTC (rev 46991)
+++ trunk/mcs/errors/cs1530-3.cs        2005-07-06 12:51:55 UTC (rev 46992)
@@ -0,0 +1,7 @@
+// cs1530-3.cs: Keyword `new' is not allowed on namespace elements
+// Line: 8
+
+new enum E
+{
+}
+

Added: trunk/mcs/errors/cs1624-2.cs
===================================================================
--- trunk/mcs/errors/cs1624-2.cs        2005-07-06 12:11:00 UTC (rev 46991)
+++ trunk/mcs/errors/cs1624-2.cs        2005-07-06 12:51:55 UTC (rev 46992)
@@ -0,0 +1,20 @@
+// cs1624-2.cs: The body of `X.this[int].set' cannot be an iterator block 
because `void' is not an iterator interface type
+// Line: 15
+using System;
+using System.Collections;
+
+class X
+{
+       IEnumerator this [int u]
+       {
+           get {
+               yield return 1;
+               yield return 2;
+               yield return 3;
+           }
+           set
+           {
+               yield return 3;         
+           }       
+       }
+}

Modified: trunk/mcs/errors/cs1638.cs
===================================================================
--- trunk/mcs/errors/cs1638.cs  2005-07-06 12:11:00 UTC (rev 46991)
+++ trunk/mcs/errors/cs1638.cs  2005-07-06 12:51:55 UTC (rev 46992)
@@ -1,4 +1,4 @@
-// CS1638: 'C__C' is a reserved identifier and cannot be used when ISO 
language version mode is used
+// CS1638: `C__C': Any identifier with double underscores cannot be used when 
ISO language version mode is specified
 // Line: 5
 // Compiler options: -langversion:ISO-1
 

Modified: trunk/mcs/errors/known-issues-gmcs
===================================================================
--- trunk/mcs/errors/known-issues-gmcs  2005-07-06 12:11:00 UTC (rev 46991)
+++ trunk/mcs/errors/known-issues-gmcs  2005-07-06 12:51:55 UTC (rev 46992)
@@ -56,6 +56,7 @@
 cs1540-3.cs NO ERROR # new in GMCS
 cs1540-5.cs NO ERROR # new in GMCS
 cs1586.cs
+cs1624-2.cs
 cs1638.cs NO ERROR
 cs1641.cs
 cs1666.cs NO ERROR

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

Reply via email to