add testcases for some more scary/horrible things that work.

llvm-svn: 69488
diff --git a/clang/test/Sema/scope-check.c b/clang/test/Sema/scope-check.c
index b7e3a21..181b6c5 100644
--- a/clang/test/Sema/scope-check.c
+++ b/clang/test/Sema/scope-check.c
@@ -56,5 +56,18 @@
   }
 }
 
-
-// FIXME: Switch cases etc.
+int test8(int x) {
+  if (x) goto L;     // expected-error {{illegal goto into protected scope}}
+  goto L2;     // expected-error {{illegal goto into protected scope}}
+  
+  for (int arr[x];   // expected-note {{jump bypasses initialization of variable length array}}  
+       ; ++x) {
+    
+  L2:;
+  }
+  
+  return x == ({
+                 int a[x];   // expected-note {{jump bypasses initialization of variable length array}}  
+               L:
+                 42; });
+}