projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* cpu-pentium.md basic-float.cs Fixed bug on fpu spills (see bug 54467),
[mono.git]
/
mono
/
tests
/
exception5.cs
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