[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / test-anon-140.cs
1 using System;
2 using System.Collections.Generic;
3
4 public static class RunTests
5 {
6         public static int Main ()
7         {
8                 Test1.X.Run ();
9                 return 0;
10         }
11 }
12
13 namespace Test1
14 {
15         delegate int Foo ();
16
17         public class X
18         {
19                 public static void Test1<R> (R r, int a)
20                 {
21                         for (int b = a; b > 0; b--) {
22                                 R s = r;
23                                 Console.WriteLine (s);
24                                 Foo foo = delegate {
25                                         Console.WriteLine (b);
26                                         Console.WriteLine (s);
27                                         Console.WriteLine (a);
28                                         Console.WriteLine (r);
29                                         return 3;
30                                 };
31                                 a -= foo ();
32                         }
33                 }
34
35                 public static void Run ()
36                 {
37                         Test1 (500L, 2);
38                 }
39         }
40 }
41