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
[tests] Test loading references from LoadFrom and LoadFile contexts
[mono-project.git]
/
mono
/
tests
/
exception5.cs
blob
362f9c1af502e246010774b7b3925b4fa298e60d
1
using
System
;
2
3
public class
Ex
{
4
5
public static int
test
(
int
a
) {
6
int
res
;
7
int
fin
=
0
;
8
try
{
9
try
{
10
res
=
10
/
a
;
11
}
catch
(
DivideByZeroException ex
) {
12
res
=
34
;
13
}
catch
{
14
res
=
22
;
15
}
16
}
catch
{
17
res
=
44
;
18
}
finally
{
19
fin
+=
1
;
20
}
21
return
fin
;
22
}
23
public static int
Main
() {
24
if
(
test
(
0
) !=
1
)
25
return
1
;
26
return
0
;
27
}
28
}
29
30