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
Take stars out of types where they make more sense.
[mono-project.git]
/
mcs
/
tests
/
test-anon-176.cs
blob
aeeb66dd6e3aefaee5fdd2288ce945fcfb20e203
1
using
System
;
2
3
namespace
TestDelegateFinallyOut
4
{
5
class
Test
6
{
7
static void
CallDelegate
(
Action test
)
8
{
9
throw new
Exception
(
"test"
);
10
}
11
12
private static bool
TestMethod
(
out int
test
)
13
{
14
try
{
15
CallDelegate
(
delegate
{
16
return
;
17
});
18
}
catch
(
Exception
) {
19
Console
.
WriteLine
(
"caught exception"
);
20
}
finally
{
21
}
22
test
=
1
;
23
return false
;
24
}
25
26
static int
Main
()
27
{
28
int
t
;
29
TestMethod
(
out
t
);
30
if
(
t
!=
1
)
31
return
1
;
32
33
return
0
;
34
}
35
}
36
}