In class/Microsoft.Build.Tasks:
[mcs.git] / tests / test-652.cs
blob7a6f52f3460df10662bb102d07695770d4436dbc
1 // Compiler options: -unsafe
3 using System;
5 class C
7 public static int Main ()
9 return Test ();
12 public static unsafe int Test ()
14 // Test: Unsafe local variable is initialized to 0
15 int* v = stackalloc int [5];
16 Console.WriteLine (v [0]);
17 return v [0] + v [1] + v [4];