blob: ebe2f531421f70a58f77b45eaa99b4beb3a1c1c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// cs0208-6.cs: Cannot take the address of a managed type ('X')
// Line: 8
// Compiler options: -unsafe
unsafe struct X {
string a;
static void Main () {
X x;
void* y = &x;
}
}
|