Skip to content
Snippets Groups Projects
Commit 2fda14af authored by Chris Lattner's avatar Chris Lattner
Browse files

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
parent 21ac10d5
No related branches found
No related tags found
No related merge requests found
...@@ -3,8 +3,12 @@ ...@@ -3,8 +3,12 @@
void xx(); void xx();
int a() { int a() {
A:if (1) xx(); A:
return ^{A:return 1;}();
if (1) xx();
return ^{
A: return 1;
}();
} }
int b() { int b() {
A: return ^{int a; A:return 1;}(); A: return ^{int a; A:return 1;}();
...@@ -15,5 +19,9 @@ int d() { ...@@ -15,5 +19,9 @@ int d() {
} }
int c() { 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;
}();
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment