[cfe-commits] r125810 - /cfe/trunk/test/Sema/block-labels.c

Chris Lattner sabre at nondot.org
Thu Feb 17 17:25:14 PST 2011


Author: lattner
Date: Thu Feb 17 19:25:14 2011
New Revision: 125810

URL: http://llvm.org/viewvc/llvm-project?rev=125810&view=rev
Log:
break testcase over multiple lines to make it easier to read.

Modified:
    cfe/trunk/test/Sema/block-labels.c

Modified: cfe/trunk/test/Sema/block-labels.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/block-labels.c?rev=125810&r1=125809&r2=125810&view=diff
==============================================================================
--- cfe/trunk/test/Sema/block-labels.c (original)
+++ cfe/trunk/test/Sema/block-labels.c Thu Feb 17 19:25:14 2011
@@ -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 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;
+     }();
 }





More information about the cfe-commits mailing list