From: Chris Lattner Date: Fri, 18 Feb 2011 01:25:14 +0000 (+0000) Subject: break testcase over multiple lines to make it easier to read. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2fda14afb1e3234aad9a15e83c8ab5285fee35a4;p=clang break testcase over multiple lines to make it easier to read. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125810 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/block-labels.c b/test/Sema/block-labels.c index 353a5702ea..d1b60cc7d3 100644 --- a/test/Sema/block-labels.c +++ b/test/Sema/block-labels.c @@ -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; + }(); }