blob: 79c680d6caa277c487025d4f9bfa3593e96995a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// 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;
}
}
|