[metadata] Fix leaks when handling a few attributes (#16675)
[mono-project.git] / mcs / tests / test-519.cs
blob8b8bd6bf2e8a7290d2d665e6a7dd7722437b2f8b
1 using System;
3 class Foo {
4 public static int Main ()
6 try {
7 f ();
8 return 1;
9 } catch {
12 try {
13 f2 ();
14 return 2;
15 } catch (ApplicationException) {
18 return 0;
21 static void f ()
23 try {
24 goto skip;
25 } catch {
26 goto skip;
27 } finally {
28 throw new System.Exception ();
30 skip:
34 static void f2 ()
36 try {
37 goto FinallyExit;
38 } finally {
39 throw new ApplicationException ();
41 FinallyExit:
42 Console.WriteLine ("Too late");