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
/
exception17.cs
blob
2b61d113bd5c65f093b76232e5329b825e3004fa
1
using
System
;
2
3
public class
main
{
4
public static
Exception exc
;
5
6
public static void
finaller
() {
7
try
{
8
throw
exc
;
9
}
finally
{
10
throw
exc
;
11
}
12
}
13
14
public static void
catcher1
() {
15
try
{
16
finaller
();
17
}
catch
(
Exception
) {
18
}
19
}
20
21
public static void
catcher2
() {
22
try
{
23
try
{
24
throw
exc
;
25
}
finally
{
26
catcher1
();
27
throw
exc
;
28
}
29
}
catch
(
Exception
) {
30
}
31
}
32
33
public static int
Main
() {
34
exc
=
new
Exception
();
35
36
catcher1
();
37
catcher2
();
38
39
return
0
;
40
}
41
}