diff options
Diffstat (limited to 'clang/test/Sema/block-literal.c')
-rw-r--r-- | clang/test/Sema/block-literal.c | 4 |
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() { |