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

public unsafe delegate void Bar (int* x);

class X
{
	public X (Bar bar)
	{ }

	unsafe static void Test (int* b)
	{ }

	static void Main ()
	{
		X x = new X (Test);
	}
}