Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0212-3.cs
1 // CS0212: You can only take the address of unfixed expression inside of a fixed statement initializer
2 // Line: 10
3 // Compiler options: -unsafe
4
5 struct Foo {
6         public float f;
7         public void foo ()
8         {
9                 unsafe {
10                         float *pf1 = &f;
11                 }
12         }
13 }
14
15 class Test {
16         static void Main ()
17         {
18                 Foo x = new Foo ();
19                 x.foo ();
20         }
21 }