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/Parser/cxx0x-lambda-expressions.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/Parser/cxx0x-lambda-expressions.cpp')
-rw-r--r-- | clang/test/Parser/cxx0x-lambda-expressions.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/test/Parser/cxx0x-lambda-expressions.cpp b/clang/test/Parser/cxx0x-lambda-expressions.cpp index 07a4701653c..aa2a9cf7fd2 100644 --- a/clang/test/Parser/cxx0x-lambda-expressions.cpp +++ b/clang/test/Parser/cxx0x-lambda-expressions.cpp @@ -12,13 +12,13 @@ class C { [&this] {}; // expected-error {{'this' cannot be captured by reference}} [&,] {}; // expected-error {{expected variable name or 'this' in lambda capture list}} [=,] {}; // expected-error {{expected variable name or 'this' in lambda capture list}} - [] {}; // expected-error {{lambda expressions are not supported yet}} - [=] (int i) {}; // expected-error {{lambda expressions are not supported yet}} - [&] (int) mutable -> void {}; // expected-error {{lambda expressions are not supported yet}} - [foo,bar] () { return 3; }; // expected-error {{lambda expressions are not supported yet}} - [=,&foo] () {}; // expected-error {{lambda expressions are not supported yet}} - [&,foo] () {}; // expected-error {{lambda expressions are not supported yet}} - [this] () {}; // expected-error {{lambda expressions are not supported yet}} + [] {}; + [=] (int i) {}; + [&] (int) mutable -> void {}; + [foo,bar] () { return 3; }; + [=,&foo] () {}; + [&,foo] () {}; + [this] () {}; return 1; } |