[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / gtest-435.cs
1 using System;
2
3 namespace testcase
4 {
5         public class Program
6         {
7                 public static int Main ()
8                 {
9                         DateTime? dt = null;
10                         var res1 = default (DateTime?) == dt;
11                         if (!res1)
12                                 return 5;
13
14                         DateTime? a = default (DateTime?);
15                         DateTime? b = default (DateTime?);
16                         bool res = a == b;
17                         if (!res)
18                                 return 4;
19
20                         res = a != b;
21                         if (res)
22                                 return 3;
23
24                         decimal? D1 = null;
25                         decimal? D2 = 7;
26
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;
33                         }
34                         return 2;
35                 }
36         }
37 }
38