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 | 656bc62a73f204286c8dc21fb5ed418b9c39b2fb (patch) | |
tree | c15ec224d4709a01112410a599da0e11fffb3b0d /clang/test/CXX/expr/expr.prim/expr.prim.lambda/p8.cpp | |
parent | 291af2b7e604a380c5db91865a3ba2a0e06d2151 (diff) | |
download | bcm5719-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/p8.cpp')
-rw-r--r-- | clang/test/CXX/expr/expr.prim/expr.prim.lambda/p8.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p8.cpp b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p8.cpp index 53d2c757721..8f524e08245 100644 --- a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p8.cpp +++ b/clang/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] () {}; } }; |