summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0214-3.cs
blob: 5d0494e30f3358327fae8ce513f512e903f050ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS0214: Pointers and fixed size buffers may only be used in an unsafe context
// Line: 13
// Compiler options: -unsafe

struct X {
	static unsafe void *a ()
		{
			return null;
		}

	static void Main ()
		{
			a ();
		}
	
}