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 | b326ca8ffbea96f9cc8a457b0f57be880304a6f5 (patch) | |
tree | 88d0757c9105ab4be5c68f44046cab11caa0ffd8 /test/CXX/expr/expr.prim/expr.prim.lambda/p14.cpp | |
parent | 7e545d95bc92157f9f124d95aa2ed66d691d2028 (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/p14.cpp')
-rw-r--r-- | test/CXX/expr/expr.prim/expr.prim.lambda/p14.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/test/CXX/expr/expr.prim/expr.prim.lambda/p14.cpp b/test/CXX/expr/expr.prim/expr.prim.lambda/p14.cpp index 2dcaa5ddf6..ad603e1719 100644 --- a/test/CXX/expr/expr.prim/expr.prim.lambda/p14.cpp +++ b/test/CXX/expr/expr.prim/expr.prim.lambda/p14.cpp @@ -8,10 +8,8 @@ class NonCopyable { void capture_by_copy(NonCopyable nc, NonCopyable &ncr) { // FIXME: error messages should talk about capture - (void)[nc] { }; // expected-error{{field of type 'NonCopyable' has private copy constructor}} \ - // expected-error{{lambda expressions are not supported yet}} - (void)[ncr] { }; // expected-error{{field of type 'NonCopyable' has private copy constructor}} \ - // expected-error{{lambda expressions are not supported yet}} + (void)[nc] { }; // expected-error{{field of type 'NonCopyable' has private copy constructor}} + (void)[ncr] { }; // expected-error{{field of type 'NonCopyable' has private copy constructor}} } struct NonTrivial { @@ -28,7 +26,7 @@ struct CopyCtorDefault { }; void capture_with_default_args(CopyCtorDefault cct) { - (void)[=] () -> void { cct.foo(); }; // expected-error{{lambda expressions are not supported yet}} + (void)[=] () -> void { cct.foo(); }; } struct ExpectedArrayLayout { @@ -37,7 +35,7 @@ struct ExpectedArrayLayout { void capture_array() { CopyCtorDefault array[3]; - auto x = [=]() -> void { // expected-error{{lambda expressions are not supported yet}} + auto x = [=]() -> void { capture(array[0]); }; static_assert(sizeof(x) == sizeof(ExpectedArrayLayout), "layout mismatch"); @@ -51,7 +49,7 @@ struct ExpectedLayout { }; void test_layout(char a, short b) { - auto x = [=] () -> void { // expected-error{{lambda expressions are not supported yet}} + auto x = [=] () -> void { capture(a); capture(b); }; |