projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #3499 from kumpera/fix_logging
[mono.git]
/
mcs
/
tests
/
test-652.cs
1
// Compiler options: -unsafe
2
3
using System;
4
5
class C
6
{
7
public static int Main ()
8
{
9
return Test ();
10
}
11
12
public static unsafe int Test ()
13
{
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];
18
}
19
}