a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
13 lines
221 B
C#
13 lines
221 B
C#
// CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `X'
|
|
// Line: 8
|
|
// Compiler options: -unsafe
|
|
|
|
unsafe struct X {
|
|
string a;
|
|
static void Main () {
|
|
X x;
|
|
void* y = &x;
|
|
}
|
|
}
|
|
|