summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0208-7.cs
blob: 88cf73b71ffa98f970b2a84bc9acf688f2d8d06b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `foo'
// Line: 11
// Compiler options: -unsafe

struct foo {
	public delegate void bar (int x);
	public bar barf;
}

unsafe class t {
	static void Main () {
		foo *f = null;
	}
}