projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Wed Oct 17 13:24:33 CEST 2007 Paolo Molaro <lupus@ximian.com>
[mono.git]
/
mcs
/
tests
/
test-408.cs
1
// Compiler options: -unsafe
2
3
unsafe class T {
4
static int Main () {
5
int len = 10;
6
int* x = stackalloc int [len];
7
for (int i = 0; i < len; i++)
8
{
9
if (x [i] != 0)
10
return i + 1;
11
}
12
return 0;
13
}
14
}