[mono/tests] Fix out of tree build.
[mono-project.git] / mcs / tests / gtest-545.cs
blob5668a7dca7afda43128c2fc6bc564adfd2b44edc
1 using System;
3 public static class ApplicationContext
5 static bool Foo ()
7 return false;
10 public static int Main ()
12 bool? debugging = false;
13 debugging = debugging | Foo ();
15 bool res = debugging.Value;
16 if (res)
17 return 1;
19 debugging = true;
20 debugging = debugging & Foo ();
21 if (res)
22 return 2;
24 int? re = 3 + (short?) 7;
25 if (re != 10)
26 return 3;
28 int a = 2;
29 int b = 2;
30 int? c = (byte?)a + b;
31 if (c != 4)
32 return 4;
34 c = a + (ushort?)b;
35 if (c != 4)
36 return 5;
38 return 0;