Another dist build fix for rx integration, move *.cs file to safe-ish path.
[mono-project.git] / mcs / tests / gtest-391.cs
blobbea361535af5c5b40f069cd84462d51373bdbce6
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 int? i = null ?? null;
23 if (i != null)
24 return 2;
26 object z = a ?? null;
27 if (i != null)
28 return 3;
30 string p = default (string) ?? "a";
31 if (p != "a")
32 return 4;
34 string p2 = "x" ?? "a";
35 if (p2 != "x")
36 return 5;
38 object arg = null;
39 string result = arg as string ?? "";
41 int? nint = null;
42 int? r = nint ?? null;
44 EventHandler h = new EventHandler (Test) ?? Test;
46 return 0;