[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / test-207.cs
1 using System;
2
3 delegate void Test (int test);
4
5 class X
6 {
7         static int result = 0;
8
9         public static void hello (int arg)
10         {
11                 result += arg;
12         }
13
14         public static void world (int arg)
15         {
16                 result += 16 * arg;
17         }
18
19         public static int Main ()
20         {
21                 Test a = new Test (hello);
22                 Test b = new Test (world);
23
24                 (a + b) (1);
25                 if (result != 17)
26                         return 1;
27
28                 ((result == 17) ? a : b) (2);
29                 if (result != 19)
30                         return 2;
31
32                 ((result == 17) ? a : b) (2);
33                 if (result != 51)
34                         return 3;
35
36                 return 0;
37         }
38 }