aboutsummaryrefslogtreecommitdiff
path: root/test/CXX/expr/expr.prim/expr.prim.lambda/p8.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
commitb326ca8ffbea96f9cc8a457b0f57be880304a6f5 (patch)
tree88d0757c9105ab4be5c68f44046cab11caa0ffd8 /test/CXX/expr/expr.prim/expr.prim.lambda/p8.cpp
parent7e545d95bc92157f9f124d95aa2ed66d691d2028 (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/p8.cpp')
-rw-r--r--test/CXX/expr/expr.prim/expr.prim.lambda/p8.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/CXX/expr/expr.prim/expr.prim.lambda/p8.cpp b/test/CXX/expr/expr.prim/expr.prim.lambda/p8.cpp
index 53d2c75772..8f524e0824 100644
--- a/test/CXX/expr/expr.prim/expr.prim.lambda/p8.cpp
+++ b/test/CXX/expr/expr.prim/expr.prim.lambda/p8.cpp
@@ -4,13 +4,13 @@ class X0 {
void explicit_capture() {
int foo;
- (void)[foo, foo] () {}; // expected-error {{'foo' can appear only once}} expected-error {{not supported yet}}
- (void)[this, this] () {}; // expected-error {{'this' can appear only once}} expected-error {{not supported yet}}
- (void)[=, foo] () {}; // expected-error {{'&' must precede a capture when}} expected-error {{not supported yet}}
- (void)[=, &foo] () {}; // expected-error {{not supported yet}}
- (void)[=, this] () {}; // expected-error {{'this' cannot appear}} expected-error {{not supported yet}}
- (void)[&, foo] () {}; // expected-error {{not supported yet}}
- (void)[&, &foo] () {}; // expected-error {{'&' cannot precede a capture when}} expected-error {{not supported yet}}
- (void)[&, this] () {}; // expected-error {{not supported yet}}
+ (void)[foo, foo] () {}; // expected-error {{'foo' can appear only once}}
+ (void)[this, this] () {}; // expected-error {{'this' can appear only once}}
+ (void)[=, foo] () {}; // expected-error {{'&' must precede a capture when}}
+ (void)[=, &foo] () {};
+ (void)[=, this] () {}; // expected-error {{'this' cannot appear}}
+ (void)[&, foo] () {};
+ (void)[&, &foo] () {}; // expected-error {{'&' cannot precede a capture when}}
+ (void)[&, this] () {};
}
};