blob: e729d508c64d4f07d322f684d61726307edd5791 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// CS1656: Cannot assign to `p' because it is a `fixed variable'
// Line: 10
// Compiler options: -unsafe
unsafe class X {
static int x = 0;
static void Main () {
fixed (int* p = &x) {
p = (int*)22;
}
}
}
|