codeowners update
[mono.git] / mcs / tests / gtest-540.cs
index 7596032d16fcf14d71e45222d72469f2d00056f5..46b6f3b6ce0fcf0b5e9f7b99f76171a6aaa50fdc 100644 (file)
@@ -85,6 +85,48 @@ class C
                
                if ((true | a) != true)
                        return 65;
+
+               var b4 = true;
+               if ((b4 & null) != null)
+                       return 100;
+
+               if ((null & b4) != null)
+                       return 101;
+
+               if ((b4 | null) != true)
+                       return 102;
+
+               if ((null | b4) != true)
+                       return 103;
+
+               bool? x_n = null;
+               bool? x_f = false;
+               bool? x_t = true;
+
+               bool? res;
+               res = null & x_n;
+               if (res.HasValue)
+                       return 201;
+
+               res = null & x_t;
+               if (res.HasValue)
+                       return 202;
+
+               res = null & x_f;
+               if (res.Value != false)
+                       return 203;
+
+               res = null | x_n;
+               if (res.HasValue)
+                       return 204;
+
+               res = null | x_t;
+               if (res.Value != true)
+                       return 205;
+
+               res = null | x_f;
+               if (res.HasValue)
+                       return 206;
                
                return 0;
        }