Updated with review feedback.
[mono.git] / mcs / errors / cs0212-2.cs
1 // CS0212: You can only take the address of unfixed expression inside of a fixed statement initializer
2 // Line: 17
3 // Compiler options: -unsafe
4
5 using System;
6
7 unsafe class X {
8         static void Main ()
9         {
10                 int foo = 0;
11                 Blah (ref foo);
12
13         }
14         
15         static void Blah (ref int mptr)
16         {
17                 int* x = &mptr;
18         }
19 }