summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p10.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-02-09 08:26:42 +0000
committerDouglas Gregor <dgregor@apple.com>2012-02-09 08:26:42 +0000
commit656bc62a73f204286c8dc21fb5ed418b9c39b2fb (patch)
treec15ec224d4709a01112410a599da0e11fffb3b0d /clang/test/CXX/expr/expr.prim/expr.prim.lambda/p10.cpp
parent291af2b7e604a380c5db91865a3ba2a0e06d2151 (diff)
downloadbcm5719-llvm-656bc62a73f204286c8dc21fb5ed418b9c39b2fb.tar.gz
bcm5719-llvm-656bc62a73f204286c8dc21fb5ed418b9c39b2fb.zip
Remove the "unsupported" error for lambda expressions. It's annoying,
and rapidly becoming untrue. llvm-svn: 150165
Diffstat (limited to 'clang/test/CXX/expr/expr.prim/expr.prim.lambda/p10.cpp')
-rw-r--r--clang/test/CXX/expr/expr.prim/expr.prim.lambda/p10.cpp9
1 files changed, 4 insertions, 5 deletions
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'}}
}
};
OpenPOWER on IntegriCloud