[sgen] Restore hazard pointers in suspend signal handler. Fixes #15695.
[mono.git] / mcs / tests / test-77.cs
index bfd058ed936b5cf881b054d73a66063ee89c752c..c4525d7b34d016c345dccae8cb57bb01bc6be522 100644 (file)
@@ -36,9 +36,27 @@ class XX {
        
                const string s1 = null + (string)null;
                const string s2 = (string)null + null;
-               
-               // csc does not compile this one
-               const string s3 = null + null;  
+
+               string s;
+               s = (string)null + null;
+               if (s.Length != 0)
+                       return 8;
+
+               s = null + (string)null;
+               if (s.Length != 0)
+                       return 9;
+
+               s = (object)null + null;
+               if (s.Length != 0)
+                       return 10;
+
+               s = null + (object)null;
+               if (s.Length != 0)
+                       return 11;
+
+               s = (object)1 + null;
+               if (s != "1")
+                       return 12;
        
                System.Console.WriteLine ("test ok");
                return 0;