From 656bc62a73f204286c8dc21fb5ed418b9c39b2fb Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 9 Feb 2012 08:26:42 +0000 Subject: Remove the "unsupported" error for lambda expressions. It's annoying, and rapidly becoming untrue. llvm-svn: 150165 --- clang/test/CXX/expr/expr.prim/expr.prim.lambda/p10.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'clang/test/CXX/expr/expr.prim/expr.prim.lambda/p10.cpp') diff --git a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p10.cpp b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p10.cpp index 6f09c53e576..b596bd5324d 100644 --- a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p10.cpp +++ b/clang/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'}} } }; -- cgit v1.2.3