CRLF->LF
authorMarek Safar <marek.safar@gmail.com>
Thu, 10 Jun 2004 09:23:07 +0000 (09:23 -0000)
committerMarek Safar <marek.safar@gmail.com>
Thu, 10 Jun 2004 09:23:07 +0000 (09:23 -0000)
svn path=/trunk/mcs/; revision=29177

12 files changed:
mcs/errors/cs0211.cs
mcs/errors/cs0213.cs
mcs/errors/cs0233.cs
mcs/errors/cs0244.cs
mcs/errors/cs0247.cs
mcs/errors/cs1900.cs
mcs/errors/cs1901.cs
mcs/errors/cs1904.cs
mcs/errors/cs2007.cs
mcs/errors/cs2016.cs
mcs/errors/cs2017.cs
mcs/errors/cs2019.cs

index 89aa68f35100028046738f3901dec27a36612345..698d333ad97621e18ee538bdc672b29111698e5c 100644 (file)
@@ -1,11 +1,10 @@
-// cs0211.cs: Cannot take the address of the given expression\r
-// Line: 7\r
-// Compiler options: -unsafe\r
-\r
-class UnsafeClass {\r
-        unsafe UnsafeClass () {\r
-                fixed (int* a = &(2)) {}\r
-        }\r
-}\r
-\r
-\r
+// cs0211.cs: Cannot take the address of the given expression
+// Line: 7
+// Compiler options: -unsafe
+
+class UnsafeClass {
+        unsafe UnsafeClass () {
+                fixed (int* a = &(2)) {}
+        }
+}
+
index 65c8b3b0a7e7af9b6bb10a9c6dc992ff9e8d2b9d..00faffd0ef404aaf59d5c8050e39beb51d816164 100644 (file)
@@ -1,16 +1,16 @@
-// cs0213.cs: You do not need to use the fixed statement to take the address of an already fixed expression\r
-// Line: 12\r
-// Compiler options: -unsafe\r
-\r
-class UnsafeClass {\r
-        unsafe UnsafeClass () {\r
-                int value = 5;\r
-                Calculate(value);\r
-        }\r
-        \r
-        unsafe void Calculate (int value) {\r
-                fixed (int *x = &value) {}\r
-        }\r
-}\r
-\r
-\r
+// cs0213.cs: You do not need to use the fixed statement to take the address of an already fixed expression
+// Line: 12
+// Compiler options: -unsafe
+
+class UnsafeClass {
+        unsafe UnsafeClass () {
+                int value = 5;
+                Calculate(value);
+        }
+        
+        unsafe void Calculate (int value) {
+                fixed (int *x = &value) {}
+        }
+}
+
+
index 6ff22a4940c034f54062c70a119ebe7b4a5c5a7b..117e6ec5116595a5c7138d8c0025d35c66863cf5 100644 (file)
@@ -1,11 +1,11 @@
-// cs0233.cs: sizeof can only be used in an unsafe context (consider using System.Runtime.InteropServices.Marshal.SizeOf)\r
-// Line: 7\r
-// Compiler options: -unsafe\r
-\r
-public class MainClass {\r
-        static void Main () {\r
-                const int size = sizeof(int);\r
-        }\r
-}\r
-\r
-\r
+// cs0233.cs: sizeof can only be used in an unsafe context (consider using System.Runtime.InteropServices.Marshal.SizeOf)
+// Line: 7
+// Compiler options: -unsafe
+
+public class MainClass {
+        static void Main () {
+                const int size = sizeof(int);
+        }
+}
+
+
index bac103f120fb58957801fdce4d4c55b15fbdfef8..8dc4a7b1fb6cc5c9100b3175de31ccab43e0f3b5 100644 (file)
@@ -1,11 +1,11 @@
-// cs0244.cs: "is" or "as" are not valid on pointer types\r
-// Line: 7\r
-// Compiler options: -unsafe\r
-\r
-class UnsafeClass {\r
-        unsafe UnsafeClass (int* pointer) {\r
-                if (pointer is string) {}\r
-        }\r
-}\r
-\r
-\r
+// cs0244.cs: "is" or "as" are not valid on pointer types
+// Line: 7
+// Compiler options: -unsafe
+
+class UnsafeClass {
+        unsafe UnsafeClass (int* pointer) {
+                if (pointer is string) {}
+        }
+}
+
+
index 0a0aef92d283a0ebd386a713405c6eeb58b2a3d7..4558366cb0da0a08a30682c8bbaf6bf55246c2cc 100644 (file)
@@ -1,11 +1,11 @@
-// cs0247.cs: Cannot use a negative size with stackalloc\r
-// Line: 7\r
-// Compiler options: -unsafe\r
-\r
-public class MainClass {\r
-        static unsafe void Main () {\r
-                int* ptr = stackalloc int[-1];\r
-        }\r
-}\r
-\r
-\r
+// cs0247.cs: Cannot use a negative size with stackalloc
+// Line: 7
+// Compiler options: -unsafe
+
+public class MainClass {
+        static unsafe void Main () {
+                int* ptr = stackalloc int[-1];
+        }
+}
+
+
index f8bdc539c27893ebbd6fea47d074c87cc04de070..0648f289015f4077d429e41e8d9a017db45451fa 100644 (file)
@@ -1,8 +1,8 @@
-// cs1900.cs: Warning level must be in the range 0-4\r
-// Line: 0\r
-// Compiler options: -warn:-1\r
-\r
-class ClassMain {\r
-        public static void Main () {}\r
-}\r
-\r
+// cs1900.cs: Warning level must be in the range 0-4
+// Line: 0
+// Compiler options: -warn:-1
+
+class ClassMain {
+        public static void Main () {}
+}
+
index 141523d03afd6740b6c6ef49bc77a5aff870c5b4..f68bbc4bdad4353fa76e82b7ae1f1e8b18bd7ccb 100644 (file)
@@ -1,8 +1,8 @@
-// cs1901.cs: Conflicting options specified: Warning level 0; Treat warnings as errors\r
-// Line: 0\r
-// Compiler options: -warn:0 -warnaserror\r
-\r
-class ClassMain {\r
-        public static void Main () {}\r
-}\r
-\r
+// cs1901.cs: Conflicting options specified: Warning level 0; Treat warnings as errors
+// Line: 0
+// Compiler options: -warn:0 -warnaserror
+
+class ClassMain {
+        public static void Main () {}
+}
+
index f92c29ff31f5591c4fb1c0a4967b9832f9f14e9d..58f82ae05731d0914386e017517e2055e53c2b3d 100644 (file)
@@ -1,8 +1,8 @@
-// cs1904.cs: '-1' is not a valid warning number\r
-// Line: 0\r
-// Compiler options: -nowarn:1,-1\r
-\r
-class ClassMain {\r
-        public static void Main () {}\r
-}\r
-\r
+// cs1904.cs: '-1' is not a valid warning number
+// Line: 0
+// Compiler options: -nowarn:1,-1
+
+class ClassMain {
+        public static void Main () {}
+}
+
index 8e86366ce6672b6711ad2194233c98369d1251e2..9e6174d0b22e99946911397111f7f0aa4a436b35 100644 (file)
@@ -1,3 +1,3 @@
-// cs2007.cs: Unrecognized command-line option: '-wrong-option'\r
-// Line: 0\r
-// Compiler options: -wrong-option\r
+// cs2007.cs: Unrecognized command-line option: '-wrong-option'
+// Line: 0
+// Compiler options: -wrong-option
index 591e407b84c56a54cd43c78d2f5cad7cd2863ece..9fb329a33a9d80811f4deb716372dff7cb7c2304 100644 (file)
@@ -1,3 +1,3 @@
-// cs2016.cs: Code page 'XX' is invalid or not installed\r
-// Line: 0\r
-// Compiler options: -codepage:XX\r
+// cs2016.cs: Code page 'XX' is invalid or not installed
+// Line: 0
+// Compiler options: -codepage:XX
index 50364a2686703459d1b0a979f5fd4743e7abb653..42ed9c5977af65ac05fdc635d8d8722739c75b6c 100644 (file)
@@ -1,8 +1,8 @@
-// cs2017.cs: Cannot specify -main if building a module or library\r
-// Line: 0\r
-// Compiler options: -main:ClassMain -target:library\r
-\r
-class ClassMain {\r
-        public static void Main () {}\r
-}\r
-\r
+// cs2017.cs: Cannot specify -main if building a module or library
+// Line: 0
+// Compiler options: -main:ClassMain -target:library
+
+class ClassMain {
+        public static void Main () {}
+}
+
index 7abaf6c43233e19e5a41d5bf2f1008254676bb99..8d4cd51fc2508a9bcb397566d585ebcc01812f58 100644 (file)
@@ -1,8 +1,8 @@
-// cs2019.cs: Invalid target type for -target: must specify 'exe', 'winexe', 'library', or 'module'\r
-// Line: 0\r
-// Compiler options: -target:unknown\r
-\r
-class ClassMain {\r
-        public static void Main () {}\r
-}\r
-\r
+// cs2019.cs: Invalid target type for -target: must specify 'exe', 'winexe', 'library', or 'module'
+// Line: 0
+// Compiler options: -target:unknown
+
+class ClassMain {
+        public static void Main () {}
+}
+