blob: 9377dc2545548489ac189035e3e05cfa6696ae02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// CS0212: You can only take the address of unfixed expression inside of a fixed statement initializer
// Line: 17
// Compiler options: -unsafe
using System;
unsafe class X {
static void Main ()
{
int foo = 0;
Blah (ref foo);
}
static void Blah (ref int mptr)
{
int* x = &mptr;
}
}
|