summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/block-literal.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/block-literal.c')
-rw-r--r--clang/test/Sema/block-literal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/block-literal.c b/clang/test/Sema/block-literal.c
index 040c383033b..2c1700a7b71 100644
--- a/clang/test/Sema/block-literal.c
+++ b/clang/test/Sema/block-literal.c
@@ -21,7 +21,7 @@ T somefunction() {
I(^{ });
- return ^{printf("\nClosure\n"); }; // expected-error {{returning block that lives on the local stack}}
+ return ^{printf("\nClosure\n"); };
}
void test2() {
int x = 4;
@@ -46,7 +46,7 @@ foo:
void (^test3())(void) {
- return ^{}; // expected-error {{returning block that lives on the local stack}}
+ return ^{};
}
void test4() {
OpenPOWER on IntegriCloud