a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
17 lines
376 B
C#
17 lines
376 B
C#
// CS0213: You cannot use the fixed statement to take the address of an already fixed expression
|
|
// Line: 12
|
|
// Compiler options: -unsafe
|
|
|
|
class UnsafeClass {
|
|
unsafe UnsafeClass () {
|
|
int value = 5;
|
|
Calculate(value);
|
|
}
|
|
|
|
unsafe void Calculate (int value) {
|
|
fixed (int *x = &value) {}
|
|
}
|
|
}
|
|
|
|
|