-// 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)) {}
+ }
+}
+
-// 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) {}
+ }
+}
+
+
-// 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);
+ }
+}
+
+
-// 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) {}
+ }
+}
+
+
-// 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];
+ }
+}
+
+
-// 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 () {}
+}
+
-// 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 () {}
+}
+
-// 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 () {}
+}
+
-// 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
-// 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
-// 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 () {}
+}
+
-// 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 () {}
+}
+