[cfe-commits] r69490 - /cfe/trunk/test/Sema/scope-check.c

Chris Lattner sabre at nondot.org
Sat Apr 18 15:56:53 PDT 2009


Author: lattner
Date: Sat Apr 18 17:56:52 2009
New Revision: 69490

URL: http://llvm.org/viewvc/llvm-project?rev=69490&view=rev
Log:
rearrange.

Modified:
    cfe/trunk/test/Sema/scope-check.c

Modified: cfe/trunk/test/Sema/scope-check.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/scope-check.c?rev=69490&r1=69489&r2=69490&view=diff

==============================================================================
--- cfe/trunk/test/Sema/scope-check.c (original)
+++ cfe/trunk/test/Sema/scope-check.c Sat Apr 18 17:56:52 2009
@@ -57,17 +57,21 @@
 }
 
 int test8(int x) {
-  if (x) goto L;     // expected-error {{illegal goto into protected scope}}
+  // For statement.
   goto L2;     // expected-error {{illegal goto into protected scope}}
-  
   for (int arr[x];   // expected-note {{jump bypasses initialization of variable length array}}  
-       ; ++x) {
-    
+       ; ++x)
   L2:;
-  }
+
+  // Statement expressions.
+  goto L3;   // expected-error {{illegal goto into protected scope}}
+  int Y = ({  int a[x];   // expected-note {{jump bypasses initialization of variable length array}}  
+           L3: 4; });
   
+  // Statement expressions 2.
+  goto L1;     // expected-error {{illegal goto into protected scope}}
   return x == ({
                  int a[x];   // expected-note {{jump bypasses initialization of variable length array}}  
-               L:
+               L1:
                  42; });
 }





More information about the cfe-commits mailing list