a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
20 lines
294 B
C#
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];
|
|
}
|
|
}
|