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
Apply changes from https://github.com/dotnet/runtime/commit/eb1756e97d23df13bc6fe798e...
[mono-project.git]
/
mono
/
tests
/
exception21.cs
blob
1456e46d878cde9936b8c7f94b48ab52c5fd04c7
1
using
System
;
2
using
System
.
Threading
;
3
4
public class
Program
{
5
6
public static void
Main
(
string
[]
args
) {
7
int
caughts
=
0
;
8
int
finallys
=
0
;
9
try
{
10
try
{
11
throw new
Exception
();
12
}
finally
{
13
finallys
++;
14
throw new
Exception
();
15
}
16
}
catch
(
Exception
) {
17
caughts
++;
18
Console
.
WriteLine
(
"Caught"
);
19
}
20
if
(
caughts
!=
1
)
21
Environment
.
Exit
(
1
);
22
if
(
finallys
!=
1
)
23
Environment
.
Exit
(
2
);
24
Console
.
WriteLine
(
"Exit"
);
25
}
26
}