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
[interp] Reduce computation under calc_section mutex
[mono-project.git]
/
mcs
/
tests
/
test-514.cs
blob
a1c1e7b4d7256c73f354a387fdc78b015bf1963f
1
// Compiler options: -warnaserror -w:2
2
3
using
System
;
4
class
X
{
5
6
public static void
HandleConflict
(
int
a
) {
7
if
(
a
!=
1
)
8
goto
throwException
;
9
if
(
a
!=
2
)
10
goto
throwException
;
11
return
;
12
throwException
:
13
throw new
Exception
();
14
}
15
16
public static int
Main
()
17
{
18
int
ret
=
1
;
19
try
{ HandleConflict (1); }
20
catch
{
21
try
{ HandleConflict (2); }
22
catch
{ ret = 0; }
23
}
24
return
ret
;
25
}
26
}