2010-04-13 Sebastien Pouliot <sebastien@ximian.com>
[mono-project.git] / mcs / tests / gtest-435.cs
blob87fd579353703601fa049245640eb1da863a2b6f
1 using System;
3 namespace testcase
5 public class Program
7 static int Main ()
9 DateTime? a = default (DateTime?);
10 DateTime? b = default (DateTime?);
11 bool res = a == b;
12 if (!res)
13 return 4;
15 res = a != b;
16 if (res)
17 return 3;
19 decimal? D1 = null;
20 decimal? D2 = 7;
22 if (D1 == D2) {
23 Console.WriteLine ("null == 7 incorrect");
24 return 1;
25 } else if (D1 != D2) {
26 Console.WriteLine ("null != 7 correct");
27 return 0;
29 return 2;