2010-06-04 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0212.cs
bloba980e520c5d4ed2927dfe20a0bb3e8c8654ef1e3
1 // cs0212.cs: You can only take the address of unfixed expression inside of a fixed statement initializer
2 // Line: 19
3 // Compiler options: -unsafe
5 using System;
7 class X
9 public int x;
10 public X ()
12 this.x = 4;
15 public unsafe static void Main ()
17 X x = new X ();
18 int *p = &x.x;