repo.or.cz
/
mono.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2010-06-21 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git]
/
mono
/
tests
/
exception2.cs
blob
f298b8fda7cee75ede3a8462ce86cafa235bde75
1
using
System
;
2
3
public class
Ex2
{
4
5
public static int
test
(
int
a
) {
6
int
res
;
7
res
=
10
/
a
;
8
return
res
;
9
}
10
public static int
Main
() {
11
int
res
=
1
;
12
try
{
13
test
(
1
);
14
test
(
0
);
15
}
catch
{
16
res
=
0
;
17
}
18
return
res
;
19
}
20
}
21
22