2010-06-14 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs0212-3.cs
blob03f6562406e63345746c5992f8c909bd72d45aa9
1 // cs0212-3.cs: You can only take the address of unfixed expression inside of a fixed statement initializer
2 // Line: 10
3 // Compiler options: -unsafe
5 struct Foo {
6 public float f;
7 public void foo ()
9 unsafe {
10 float *pf1 = &f;
15 class Test {
16 static void Main ()
18 Foo x = new Foo ();
19 x.foo ();