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-941.cs
blob
f5d90c046fb315d3dd86ad38ca45d88ba4505b19
1
public class
GotoCodeFlowBug
2
{
3
public static void
Test
(
bool
cond
,
out int
x
)
4
{
5
if
(
cond
)
6
{
7
goto
Label
;
8
}
9
Label
:
10
x
=
0
;
11
}
12
13
public static void
Test2
(
bool
cond
,
out int
x
)
14
{
15
if
(
cond
)
16
{
17
goto
Label
;
18
}
19
else
20
{
21
goto
Label
;
22
}
23
Label
:
24
x
=
0
;
25
}
26
27
public static void
Main
()
28
{
29
}
30
}