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
[metadata] Fix leaks when handling a few attributes (#16675)
[mono-project.git]
/
mcs
/
tests
/
test-408.cs
blob
a1649cfd237c31f6b63713d062e349b7f5bedc1e
1
// Compiler options: -unsafe
2
3
unsafe class
T
{
4
public 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
}