[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / gtest-389.cs
1 using System;
2
3 enum MyEnum : byte
4 {
5         A = 1,
6         B = 2,
7         Z = 255
8 }
9
10 class C
11 {
12         public static int Main ()
13         {
14                 MyEnum? e = MyEnum.A;
15                 byte? b = 255;
16                 MyEnum? res = e + b;
17                 if (res != 0)
18                         return 1;
19
20                 e = null;
21                 b = 255;
22                 res = e + b;
23                 if (res != null)
24                         return 2;
25                         
26                 MyEnum e2 = MyEnum.A;
27                 byte b2 = 1;
28                 MyEnum res2 = e2 + b2;
29                 if (res2 != MyEnum.B)
30                         return 3;
31                         
32                 Console.WriteLine ("OK");
33                 return 0;
34         }
35 }
36