]> granicus.if.org Git - clang/commitdiff
break testcase over multiple lines to make it easier to read.
authorChris Lattner <sabre@nondot.org>
Fri, 18 Feb 2011 01:25:14 +0000 (01:25 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 18 Feb 2011 01:25:14 +0000 (01:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125810 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/block-labels.c

index 353a5702eafab63181cee89c3e015714bf78773c..d1b60cc7d31f13e3b40299eb34503b221945c7c7 100644 (file)
@@ -3,8 +3,12 @@
 void xx();
 
 int a() { 
-  A:if (1) xx();
-  return ^{A:return 1;}();
+  A:
+  
+  if (1) xx();
+  return ^{
+         A: return 1;
+       }();
 }
 int b() { 
   A: return ^{int a; A:return 1;}();
@@ -15,5 +19,9 @@ int d() {
 }
 
 int c() { 
-  goto A; return ^{ A:return 1;}(); // expected-error {{use of undeclared label 'A'}}
+  goto A;     // expected-error {{use of undeclared label 'A'}}
+  return ^{
+       A:
+        return 1;
+     }();
 }