Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / gtest-211.cs
1 class MyTest {
2         static void f (bool a, bool b)
3         {
4                 if (a != b)
5                         throw new System.Exception ("Something wrong: " + a + " vs. " + b);
6         }
7         public static void Main()
8         {
9                 int? w = null;
10                 int? x = null;
11                 int? y = 0;
12                 int? z = 1;
13
14                 f (false, x == 0);
15                 f (true,  x != 0);
16                 f (false, x == y);
17                 f (true,  x != y);
18                 f (true,  x == w);
19                 f (false, x != w);
20                 f (true,  x == null);
21                 f (false, x != null);
22
23                 f (true,  0 == y);
24                 f (false, 0 != y);
25                 f (false, z == y);
26                 f (true,  z != y);
27                 f (false, null == y);
28                 f (true,  null != y);
29         }
30 }