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
remove NotWorking
[mcs.git]
/
tests
/
test-18.cs
blob
eb2a02c003327bea4500efd4d29c4b73d3847c00
1
using
System
;
2
3
class
X
{
4
static int
i
;
5
static int
j
;
6
7
static void
m
()
8
{
9
i
=
0
;
10
j
=
0
;
11
12
try
{
13
throw new
ArgumentException
(
"Blah"
);
14
}
catch
(
ArgumentException
){
15
i
=
1
;
16
}
catch
(
Exception
){
17
i
=
2
;
18
}
finally
{
19
j
=
1
;
20
}
21
}
22
23
static int
ret
(
int
a
)
24
{
25
try
{
26
if
(
a
==
1
)
27
throw new
Exception
();
28
29
return
1
;
30
}
catch
{
31
return
2
;
32
}
33
}
34
35
static int
Main
()
36
{
37
m
();
38
if
(
i
!=
1
)
39
return
1
;
40
if
(
j
!=
1
)
41
return
2
;
42
43
if
(
ret
(
1
) !=
2
)
44
return
3
;
45
46
if
(
ret
(
10
) !=
1
)
47
return
4
;
48
49
return
0
;
50
}
51
}
52