diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-02-08 20:17:14 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-02-08 20:17:14 +0000 |
commit | 76e3da57b0e8cf72d221f44d54566ef206341668 (patch) | |
tree | 50e02b99899599b547dfa8cb0b70fb5390a1ea2f /test/CXX/expr/expr.prim/expr.prim.lambda/p15.cpp | |
parent | b319e029a6a05a76023c1bb1ce77a6d567457838 (diff) |
When completing a lambda expression, make sure to check and attach the
body of the lambda to the function call operator.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150087 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX/expr/expr.prim/expr.prim.lambda/p15.cpp')
-rw-r--r-- | test/CXX/expr/expr.prim/expr.prim.lambda/p15.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CXX/expr/expr.prim/expr.prim.lambda/p15.cpp b/test/CXX/expr/expr.prim/expr.prim.lambda/p15.cpp index a02340f8b9..7264fa18d0 100644 --- a/test/CXX/expr/expr.prim/expr.prim.lambda/p15.cpp +++ b/test/CXX/expr/expr.prim/expr.prim.lambda/p15.cpp @@ -5,6 +5,6 @@ class NonCopyable { }; void capture_by_ref(NonCopyable nc, NonCopyable &ncr) { - [&nc] {}; // expected-error{{lambda expressions are not supported yet}} - [&ncr] {}; // expected-error{{lambda expressions are not supported yet}} + [&nc] () -> void {}; // expected-error{{lambda expressions are not supported yet}} + [&ncr] () -> void {}; // expected-error{{lambda expressions are not supported yet}} } |