2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs0212-2.cs
blob76acc4c08eeec5a9b9902e45af03ec5664d95e44
1 // cs0212-2.cs: You can only take the address of unfixed expression inside of a fixed statement initializer
2 // Line: 17
3 // Compiler options: -unsafe
5 using System;
7 unsafe class X {
8 static void Main ()
10 int foo = 0;
11 Blah (ref foo);
15 static void Blah (ref int mptr)
17 int* x = &mptr;