[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / gtest-etree-04.cs
index 76bbfcc1a9d173652433f88b22e5182dd0c2b0cd..d40bc9636d952ab34e08658c794aee43128d93b8 100644 (file)
@@ -22,11 +22,16 @@ struct Foo
        {
                throw new ApplicationException ();
        }
+       
+       public static Foo operator + (Foo d1, Foo d2)
+       {
+               throw new ApplicationException ();
+       }
 }
 
 class C
 {
-       static int Main()
+       public static int Main()
        {
                Foo f;
                Expression<Func<bool>> e = () => f > null;
@@ -45,6 +50,10 @@ class C
                if (!e.Compile ().Invoke ())
                        return 4;
                
+               Expression<Func<Foo?>> e2 = () => f + null;
+               if (e2.Compile ().Invoke () != null)
+                       return 5;
+
                Console.WriteLine ("OK");
                return 0;
        }