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