[mono/tests] Fix out of tree build.
[mono-project.git] / mcs / tests / gtest-435.cs
blob9add10976281e1af1e1be4928ec4e8262333b0a1
1 using System;
3 namespace testcase
5 public class Program
7 public static int Main ()
9 DateTime? dt = null;
10 var res1 = default (DateTime?) == dt;
11 if (!res1)
12 return 5;
14 DateTime? a = default (DateTime?);
15 DateTime? b = default (DateTime?);
16 bool res = a == b;
17 if (!res)
18 return 4;
20 res = a != b;
21 if (res)
22 return 3;
24 decimal? D1 = null;
25 decimal? D2 = 7;
27 if (D1 == D2) {
28 Console.WriteLine ("null == 7 incorrect");
29 return 1;
30 } else if (D1 != D2) {
31 Console.WriteLine ("null != 7 correct");
32 return 0;
34 return 2;