Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

20 lines
294 B
C#

// Compiler options: -unsafe
using System;
class C
{
public static int Main ()
{
return Test ();
}
public static unsafe int Test ()
{
// Test: Unsafe local variable is initialized to 0
int* v = stackalloc int [5];
Console.WriteLine (v [0]);
return v [0] + v [1] + v [4];
}
}