diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-02-09 08:26:42 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-02-09 08:26:42 +0000 |
commit | b326ca8ffbea96f9cc8a457b0f57be880304a6f5 (patch) | |
tree | 88d0757c9105ab4be5c68f44046cab11caa0ffd8 /test/CXX/expr/expr.prim/expr.prim.lambda/p10.cpp | |
parent | 7e545d95bc92157f9f124d95aa2ed66d691d2028 (diff) |
Remove the "unsupported" error for lambda expressions. It's annoying,
and rapidly becoming untrue.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150165 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX/expr/expr.prim/expr.prim.lambda/p10.cpp')
-rw-r--r-- | test/CXX/expr/expr.prim/expr.prim.lambda/p10.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/CXX/expr/expr.prim/expr.prim.lambda/p10.cpp b/test/CXX/expr/expr.prim/expr.prim.lambda/p10.cpp index 6f09c53e57..b596bd5324 100644 --- a/test/CXX/expr/expr.prim/expr.prim.lambda/p10.cpp +++ b/test/CXX/expr/expr.prim/expr.prim.lambda/p10.cpp @@ -17,10 +17,9 @@ class X0 { void explicit_capture() { int variable; // expected-note {{declared here}} - (void)[&Overload] () {}; // expected-error {{does not name a variable}} expected-error {{not supported yet}} - (void)[&GlobalVar] () {}; // expected-error {{does not have automatic storage duration}} expected-error {{not supported yet}} - (void)[&AmbiguousVar] () {}; // expected-error {{reference to 'AmbiguousVar' is ambiguous}} expected-error {{not supported yet}} - (void)[&Variable] () {}; // expected-error {{use of undeclared identifier 'Variable'; did you mean 'variable'}} \ - // expected-error{{lambda expressions are not supported yet}} + (void)[&Overload] () {}; // expected-error {{does not name a variable}} + (void)[&GlobalVar] () {}; // expected-error {{does not have automatic storage duration}} + (void)[&AmbiguousVar] () {}; // expected-error {{reference to 'AmbiguousVar' is ambiguous}} + (void)[&Variable] () {}; // expected-error {{use of undeclared identifier 'Variable'; did you mean 'variable'}} } }; |