Errors -> Warnings
[mono.git] / mcs / errors / cs0214-2.cs
old mode 100755 (executable)
new mode 100644 (file)
index 79ddc40..22c81e9
@@ -1,15 +1,15 @@
-// cs0214: Pointer can only be used in unsafe context
+// cs0214-2.cs: Pointers and fixed size buffers may only be used in an unsafe context
 // Line: 9
 // Compiler options: -unsafe
 
-class X {
-       static void Main ()
-       {
-               int b = 0;
-               method ((int *) b);
-       }
-        
-        unsafe static void method (int* i)
+public class Test
+{
+        public void Foo ()
         {
+                Foo (null);
         }
+
+        public static unsafe void Foo (int* buf) { }
 }
+
+