projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #5082 from kumpera/fix-ro-fs-file-delete
[mono.git]
/
mcs
/
tests
/
test-519.cs
diff --git
a/mcs/tests/test-519.cs
b/mcs/tests/test-519.cs
index 1c78dbebe6061860f844837208656a7053453b95..8b8bd6bf2e8a7290d2d665e6a7dd7722437b2f8b 100644
(file)
--- a/
mcs/tests/test-519.cs
+++ b/
mcs/tests/test-519.cs
@@
-1,13
+1,23
@@
+using System;
+
class Foo {
class Foo {
- static int Main ()
+
public
static int Main ()
{
try {
f ();
return 1;
} catch {
{
try {
f ();
return 1;
} catch {
- return 0;
}
}
+
+ try {
+ f2 ();
+ return 2;
+ } catch (ApplicationException) {
+ }
+
+ return 0;
}
}
+
static void f ()
{
try {
static void f ()
{
try {
@@
-20,4
+30,15
@@
class Foo {
skip:
;
}
skip:
;
}
+
+ static void f2 ()
+ {
+ try {
+ goto FinallyExit;
+ } finally {
+ throw new ApplicationException ();
+ }
+ FinallyExit:
+ Console.WriteLine ("Too late");
+ }
}
}