diff options
Diffstat (limited to 'test/CXX/expr/expr.prim/expr.prim.lambda/blocks.cpp')
-rw-r--r-- | test/CXX/expr/expr.prim/expr.prim.lambda/blocks.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/CXX/expr/expr.prim/expr.prim.lambda/blocks.cpp b/test/CXX/expr/expr.prim/expr.prim.lambda/blocks.cpp index faf686d111..2ed738d3fd 100644 --- a/test/CXX/expr/expr.prim/expr.prim.lambda/blocks.cpp +++ b/test/CXX/expr/expr.prim/expr.prim.lambda/blocks.cpp @@ -5,7 +5,6 @@ void block_capture_errors() { (void)[var] { }; // expected-error{{__block variable 'var' cannot be captured in a lambda}} \ // expected-error{{lambda expressions are not supported yet}} - // FIXME: this should produce the same error as above - (void)[=] { var = 17; }; // expected-error{{reference to local variable 'var' declared in enclosed function 'block_capture_errors'}} \ + (void)[=] { var = 17; }; // expected-error{{__block variable 'var' cannot be captured in a lambda}} \ // expected-error{{lambda expressions are not supported yet}} } |