a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
15 lines
228 B
C#
15 lines
228 B
C#
// 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;
|
|
}
|
|
}
|
|
}
|
|
|