More tests.
[mono.git] / mcs / tests / gtest-391.cs
1 using System;
2
3 class C
4 {
5         bool Test_1 ()
6         {
7                 bool? xx = null;
8                 return xx ?? true;
9         }
10         
11         public static int Main ()
12         {
13                 string a = null;
14                 string b = null ?? "a";
15                 if (b != "a")
16                         return 1;
17                 
18                 int? i = null ?? null;
19                 if (i != null)
20                         return 2;
21
22                 object z = a ?? null;
23                 if (i != null)
24                         return 3;
25
26                 string p = default (string) ?? "a";
27                 if (p != "a")
28                         return 4;
29                 
30                 string p2 = "x" ?? "a";
31                 if (p2 != "x")
32                         return 5;
33
34                 return 0;
35         }
36 }