New tests + update
authorMarek Safar <marek.safar@gmail.com>
Fri, 1 Aug 2008 07:52:34 +0000 (07:52 -0000)
committerMarek Safar <marek.safar@gmail.com>
Fri, 1 Aug 2008 07:52:34 +0000 (07:52 -0000)
svn path=/trunk/mcs/; revision=109415

15 files changed:
mcs/errors/cs0106-4.cs [new file with mode: 0755]
mcs/errors/cs0106-5.cs [new file with mode: 0755]
mcs/errors/cs0524-2.cs
mcs/errors/cs0524-3.cs
mcs/errors/cs0524-4.cs
mcs/errors/cs0524-5.cs
mcs/errors/cs0524.cs
mcs/errors/cs0525.cs
mcs/errors/cs0526.cs
mcs/errors/cs0548-4.cs
mcs/errors/cs0548.cs
mcs/errors/cs0620-2.cs
mcs/errors/cs0620.cs
mcs/errors/known-issues-gmcs
mcs/errors/known-issues-mcs

diff --git a/mcs/errors/cs0106-4.cs b/mcs/errors/cs0106-4.cs
new file mode 100755 (executable)
index 0000000..aee2e55
--- /dev/null
@@ -0,0 +1,7 @@
+// CS0106: The modifier `unsafe' is not valid for this item\r
+// Line: 5\r
+// Compiler options: -unsafe\r
+\r
+unsafe enum E\r
+{\r
+}\r
diff --git a/mcs/errors/cs0106-5.cs b/mcs/errors/cs0106-5.cs
new file mode 100755 (executable)
index 0000000..b24d5d1
--- /dev/null
@@ -0,0 +1,9 @@
+// CS0106: The modifier `public' is not valid for this item
+// Line: 6
+
+class C
+{
+       public ~C ()
+       {
+       }
+}
index 53abc1f53adba6e4654dcc2dd6ff84a7f3d6c591..348463e9fa6e36887102083679f69f8e23d55723 100644 (file)
@@ -1,6 +1,6 @@
-// cs0524-2.cs: `Interface.I': Interfaces cannot declare classes, structs, interfaces, delegates, enumerations or constants
+// CS0524: Interfaces cannot declare classes, structs, interfaces, delegates, or enumerations
 // Line: 5
 
 interface Interface {
         interface I {}
-}
\ No newline at end of file
+}
index 7ffb0cb761ab2575fd781a0e04e1bd6bbb8b7f19..73de70bd0140951f9ed2bb142855c518445a4890 100644 (file)
@@ -1,4 +1,4 @@
-// cs0524-3.cs: `Interface.E': Interfaces cannot declare classes, structs, interfaces, delegates, enumerations or constants
+// CS0524: Interfaces cannot declare classes, structs, interfaces, delegates, or enumerations
 // Line: 4
 
 interface Interface {
@@ -6,4 +6,4 @@ interface Interface {
             White,
             Black
         }
-}
\ No newline at end of file
+}
index de005af3d9d70a086ffa11ed598b695acc19bbdd..31718efc27d71167fa29efd4d2a45fc22e95f472 100644 (file)
@@ -1,4 +1,4 @@
-// cs0524-4.cs: `Interface.C': Interfaces cannot declare classes, structs, interfaces, delegates, enumerations or constants
+// CS0524: Interfaces cannot declare classes, structs, interfaces, delegates, or enumerations
 // Line: 5
 
 interface Interface {
index 1d4d61e5ad3721c8ee55ce21baa255919132d1d0..9300143b99fcdea8fea4936218159e21504ed04b 100644 (file)
@@ -1,4 +1,4 @@
-// cs0524-5.cs: `Interface.D': Interfaces cannot declare classes, structs, interfaces, delegates, enumerations or constants
+// CS0524: Interfaces cannot declare classes, structs, interfaces, delegates, or enumerations
 // Line: 5
 
 interface Interface {
index 19b93842187f29fe88e3a094bba29a22e219194c..9c9ff28c5942f441eb34b4cfca9464e1f7a36e82 100644 (file)
@@ -1,4 +1,4 @@
-// cs0524.cs: `Interface.Struct': Interfaces cannot declare classes, structs, interfaces, delegates, enumerations or constants
+// CS0524: Interfaces cannot declare classes, structs, interfaces, delegates, or enumerations
 // Line: 5
 
 interface Interface {
index 8a915987c2b16cac31514ff8c727a35beed2ed97..9e225c6dedb7bf79ee359760ca248b1dfb97d49c 100644 (file)
@@ -1,5 +1,7 @@
-// cs0525.cs: Interfaces cannot contain fields
-// Line: 5
-interface Interface { 
+// CS0525: Interfaces cannot contain fields or constants
+// Line: 6
+
+interface Interface
+{ 
        bool value = false;
-}
\ No newline at end of file
+}
index 08c59d1a34f654e665fb3f68df18a18cc74f8d72..95525373c58160f84251cac9771f2a8a4b009a99 100644 (file)
@@ -1,4 +1,4 @@
-// cs0526.cs: Interfaces cannot contain constructors
+// CS0526: Interfaces cannot contain contructors
 // Line: 5
 
 public interface Interface {
index 477067adb73ddf88030c8d2988973160abd1b011..3b402a8b4601fac97946e207b805ceada2d2ba32 100644 (file)
@@ -1,4 +1,4 @@
-// cs0548.cs: 'this[bool]' : property or indexer must have at least one accessor
+// CS0548: `IndexerClass.this[bool]': property or indexer must have at least one accessor
 // Line: 5
 
 class IndexerClass {
index 695eefc3bdfef381bdc418fd8cbda95f58adc678..acd88588e41f118ea859f6a1d1b0d07d24ee7076 100644 (file)
@@ -1,4 +1,4 @@
-// cs0548.cs: 'PropertyClass.Value' : property or indexer must have at least one accessor
+// CS0548: `PropertyClass.Value': property or indexer must have at least one accessor
 // Line: 5
 
 class PropertyClass {
index e3b76f67fc60392fd2b993b9986b11e803e5ce12..5898b6395c4dc8372717a2fddd6b82bdd1545c4d 100644 (file)
@@ -1,4 +1,4 @@
-// CS0620: An indexer return type cannot be `void'
+// CS0620: `Indexer.this[int]': indexer return type cannot be `void'
 // Line: 5
 
 interface Indexer {
index 1d300faeccfb8018ce288ba06b11f4063dd0c717..f55503d56c048875d22aba8e801daedffee82417 100644 (file)
@@ -1,7 +1,8 @@
-// CS0620: An indexer return type cannot be `void'
+// CS0620: `PropertyClass.this[int]': indexer return type cannot be `void'
 // Line: 5
 
 class PropertyClass {
-        public void this [int i] { set {}
+        public void this [int i] {
+               set {}
         }
 }
index a704e67cec5025798cb0fa9541b58db99ffc3eb4..dc3650a807437b243b388ea19e3c7939c0f6baef 100644 (file)
 cs0158-5.cs
 cs0162-7.cs NO ERROR
 cs0214-10.cs NO ERROR
-cs0525.cs
-cs0526.cs
 cs0547-2.cs # new in GMCS; grammar issue
 cs0547.cs
-cs0548-4.cs
-cs0548.cs
-cs0567.cs
 cs1041.cs # new in GMCS; grammar issue
 cs1521-3.cs
 cs1525.cs
index 5f0227c68c3c7205a5d102929a14bd92f0d42e75..d660f82dfe4f1e4c96c30d1c9110a60cce4bdb3d 100644 (file)
 
 cs0158-5.cs
 cs0162-7.cs NO ERROR
-cs0525.cs
-cs0526.cs
 cs0547.cs
 cs0547-2.cs
-cs0548-4.cs
-cs0548.cs
-cs0567.cs
 cs1041.cs
 cs1521-3.cs
 cs1525.cs