Bump NuGet.BuildTasks to get new updates and switch to `dev` branch (#5566)
[mono.git] / mcs / tests / test-154.cs
index 6a336975db057e3f360bea0e508efe7ab33b8eb8..163e78d135caac1dba6b75fb7836b8a5b3886bde 100644 (file)
@@ -582,27 +582,60 @@ public class X
                ;
        }
 
-       //
-       // Bug 59867
-       //
-       static void test39 (out int a)
+       static int test40 (int stop)
        {
-               int x_0 = 0;
-               int ll_1 = 0;
-        
-               switch (0) {
-               default:
-                       switch (x_0) {
-                       default:
-                               if (ll_1 == 0)
-                                       break;
-                               else
-                                       goto k_1;
-                       }
-                       a = 5;
+               int service;
+
+               int pos = 0;
+               do {
+                       service = 1;
                        break;
-               k_1:
+               } while (pos < stop);
+
+               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);
        }
 }