repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
monotouch uses the real HttpWebRequest
[mcs.git]
/
tests
/
test-408.cs
blob
141e994a634b40ca380490f5e81ed4b38c3182d0
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
}