summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0255.cs
blob: 1168f79dace87c7b69310f78dc622a1e546a77fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0255: Cannot use stackalloc in finally or catch
// Line: 12
// Compiler options: -unsafe

unsafe class X {

	static void Main ()
	{
		try {
		} catch {
			char *ptr = stackalloc char [10];
		}
	}
}