blob: 5bf39e862c339891082e94942904a97092790390 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// cs1656-2.cs: 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;
}
}
}
|