[mcs] Add codegen for null operator on result of awaited instance expression of prope...
[mono.git] / mcs / tests / test-154.cs
index 607bbc0a823bd40ab235b402f7a01bc6f40330d3..163e78d135caac1dba6b75fb7836b8a5b3886bde 100644 (file)
@@ -613,5 +613,29 @@ public class X
                }
 
                Console.WriteLine (z);
-       }       
+       }
+       
+       public void test42 (int arg)
+       {
+               bool x;
+               for (; ; ) {
+                       x = false;
+                       if (arg > 0) {
+                               x = true;
+                               switch (arg) {
+                               case 1:
+                               case 2:
+                                       continue;
+                               default:
+                                       break;
+                               }
+                               break;
+                       } else {
+                               x = false;
+                               break;
+                       }
+               }
+
+               Console.WriteLine (x);
+       }
 }