Merge pull request #664 from symform/xbuild-AssignProjectConfiguration
[mono.git] / mcs / tests / gtest-545.cs
1 using System;
2
3 public static class ApplicationContext
4 {
5         static bool Foo ()
6         {
7                 return false;
8         }
9                 
10         public static int Main ()
11         {
12                 bool? debugging = false;
13                 debugging = debugging | Foo ();
14                 
15                 bool res = debugging.Value;
16                 if (res)
17                         return 1;
18                 
19                 debugging = true;
20                 debugging = debugging & Foo ();
21                 if (res)
22                         return 2;
23                 
24                 int? re = 3 + (short?) 7;
25                 if (re != 10)
26                         return 3;
27                 
28                 int a = 2;
29                 int b = 2;
30                 int? c = (byte?)a + b;
31                 if (c != 4)
32                         return 4;
33                 
34                 c = a + (ushort?)b;
35                 if (c != 4)
36                         return 5;
37                 
38                 return 0;
39         }
40 }