[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / gtest-270.cs
1 using System;
2
3 class X
4 {
5         static int Test (int? a)
6         {
7                 switch (a) {
8                 case 0:
9                         return 0;
10                 case 1:
11                         return 1;
12
13                 default:
14                         return -1;
15                 }
16         }
17
18         public static int Main ()
19         {
20                 if (Test (null) != -1)
21                         return 1;
22                 if (Test (0) != 0)
23                         return 2;
24
25                 return 0;
26         }
27 }