[mono/tests] Fix out of tree build.
[mono-project.git] / mcs / tests / test-anon-23.cs
blob9858dc9a0a9adbe652dc8035e2971bd45a593109
1 using System;
3 delegate void D ();
5 class X {
7 public static int Main ()
9 X x = new X();
10 x.M ();
11 e ();
12 Console.WriteLine ("J should be 101= {0}", j);
13 if (j != 101)
14 return 3;
15 Console.WriteLine ("OK");
16 return 0;
19 static int j;
20 static D e;
22 void M ()
24 int l = 100;
26 D d = delegate {
27 int b;
28 b = 1;
29 e = delegate {
30 j = l + b;
33 d ();