Merge pull request #15293 from lewing/wasm-clean
[mono-project.git] / mcs / tests / gtest-391.cs
blobfbc4644f46be35c04755786c48ad901a17d916cd
1 using System;
3 class C
5 bool Test_1 ()
7 bool? xx = null;
8 return xx ?? true;
11 static void Test (object s, EventArgs a)
15 public static int Main ()
17 string a = null;
18 string b = null ?? "a";
19 if (b != "a")
20 return 1;
22 object z = a ?? null;
23 if (z != null)
24 return 3;
26 string p = default (string) ?? "a";
27 if (p != "a")
28 return 4;
30 string p2 = "x" ?? "a";
31 if (p2 != "x")
32 return 5;
34 object arg = null;
35 string result = arg as string ?? "";
37 int? nint = null;
38 int? r = nint ?? null;
40 EventHandler h = new EventHandler (Test) ?? Test;
42 return 0;