repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Take stars out of types where they make more sense.
[mono-project.git]
/
mcs
/
tests
/
test-652.cs
blob
7a6f52f3460df10662bb102d07695770d4436dbc
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
}