Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
[mono.git] / mcs / tests / gtest-435.cs
index ac5e867160ad4a70e32125029c40a0da6c025a11..c9c9e1c65b92fb964cfe7e774e89610109392e68 100644 (file)
@@ -4,8 +4,18 @@ namespace testcase
 {
        public class Program
        {
-               private static int Main ()
+               public static int Main ()
                {
+                       DateTime? a = default (DateTime?);
+                       DateTime? b = default (DateTime?);
+                       bool res = a == b;
+                       if (!res)
+                               return 4;
+
+                       res = a != b;
+                       if (res)
+                               return 3;
+
                        decimal? D1 = null;
                        decimal? D2 = 7;