Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

45 lines
487 B
C#

using System;
class Foo {
public static int Main ()
{
try {
f ();
return 1;
} catch {
}
try {
f2 ();
return 2;
} catch (ApplicationException) {
}
return 0;
}
static void f ()
{
try {
goto skip;
} catch {
goto skip;
} finally {
throw new System.Exception ();
}
skip:
;
}
static void f2 ()
{
try {
goto FinallyExit;
} finally {
throw new ApplicationException ();
}
FinallyExit:
Console.WriteLine ("Too late");
}
}