Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / test-154.cs
index 8098cfd5bcabaa322a1a92d3491e5722859ee6c7..163e78d135caac1dba6b75fb7836b8a5b3886bde 100644 (file)
@@ -594,4 +594,48 @@ public class X
 
                return service;
        }
+
+       public void test41 ()
+       {
+               int y, x = 3;
+               int z;
+               while (true) {
+                       if (x > 3) {
+                               y = 3;
+                               goto end;
+                       } else {
+                               z = 3;
+                       }
+
+                       break;
+               end:
+                       z = y;
+               }
+
+               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);
+       }
 }