Put back improved error handling.
[mono.git] / mcs / errors / cs0214-2.cs
old mode 100755 (executable)
new mode 100644 (file)
index 2526a9f..22c81e9
@@ -1,7 +1,15 @@
-class X {
-       static void Main ()
-       {
-               int b = 0;
-               int a = (int *) b;
-       }
+// cs0214-2.cs: Pointers and fixed size buffers may only be used in an unsafe context
+// Line: 9
+// Compiler options: -unsafe
+
+public class Test
+{
+        public void Foo ()
+        {
+                Foo (null);
+        }
+
+        public static unsafe void Foo (int* buf) { }
 }
+
+