[metadata] Fix leaks when handling a few attributes (#16675)
[mono-project.git] / mcs / tests / test-anon-44.cs
blob63d73ffc6872df74c4d78eb919bb04dcf9e1d419
1 using System;
3 delegate void Simple ();
5 delegate Simple Foo ();
7 class X
9 public void Hello (long k)
10 { }
12 public void Test (int i)
14 Hello (3);
15 Foo foo = delegate {
16 int a = i;
17 Hello (4);
18 return delegate {
19 int b = a;
20 Hello (5);
23 Foo bar = delegate {
24 int c = i;
25 Hello (6);
26 return delegate {
27 int d = i;
28 Hello (7);
31 Simple simple = foo ();
32 simple ();
35 public static void Main ()
37 X x = new X ();
38 x.Test (3);