a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
45 lines
487 B
C#
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");
|
|
}
|
|
}
|