Flush
[mono.git] / mcs / tests / verify-5.cs
index a6f697d6f5c0f8b89f7e40c845fd676f07d40c14..8ddf88f6c2cd1342fec7e8145e5d0e292f831b7d 100644 (file)
@@ -28,5 +28,38 @@ class T {
                return n;
        }
 
+       // This is from System.Text.RegularExpressions.Syntax.Parser::ParseGroup.
+       void foo (int a)
+       {
+               bool b = false;
+
+               while (true) {
+                       switch (a) {
+                       case 3:
+                               break;
+                       }
+
+                       if (b)
+                               goto EndOfGroup;
+               }
+
+       EndOfGroup:
+               ;
+       }
+
+       // Another case of goto that we did not handle properly
+       static void XXXA () {
+               goto each_logic_expr;
+
+               int j;
+               bool x = true;
+               try {
+               }
+               catch {}
+               int dd;
+               each_logic_expr:
+               ;
+       }
+
        static void Main() {}
 }