[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / gtest-389.cs
blob7515bb74cef7d4457a6f0ad74ab51ffd593d332d
1 using System;
3 enum MyEnum : byte
5 A = 1,
6 B = 2,
7 Z = 255
10 class C
12 public static int Main ()
14 MyEnum? e = MyEnum.A;
15 byte? b = 255;
16 MyEnum? res = e + b;
17 if (res != 0)
18 return 1;
20 e = null;
21 b = 255;
22 res = e + b;
23 if (res != null)
24 return 2;
26 MyEnum e2 = MyEnum.A;
27 byte b2 = 1;
28 MyEnum res2 = e2 + b2;
29 if (res2 != MyEnum.B)
30 return 3;
32 Console.WriteLine ("OK");
33 return 0;