Updated with review feedback.
[mono.git] / mcs / errors / cs0255.cs
1 // CS0255: Cannot use stackalloc in finally or catch
2 // Line: 12
3 // Compiler options: -unsafe
4
5 unsafe class X {
6
7         static void Main ()
8         {
9                 try {
10                 } catch {
11                         char *ptr = stackalloc char [10];
12                 }
13         }
14 }