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