diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-02-09 02:45:47 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-02-09 02:45:47 +0000 |
commit | 18fe084d72392a5ceaa1fab7d3f3f0d0f2538069 (patch) | |
tree | 978b9bb31cb6e413aa4c372d3dcce1ab0051a88f /test/CXX/expr/expr.prim/expr.prim.lambda/p15.cpp | |
parent | 4bbb8501d9db2ae72b1e39afaafa5795d67ffe03 (diff) |
Implement capture-by-copy for arrays in lambdas.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150138 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 | 2 |
1 files changed, 2 insertions, 0 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 e17d8b5101..605265b80a 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,8 @@ class NonCopyable { }; void capture_by_ref(NonCopyable nc, NonCopyable &ncr) { + int array[3]; (void)[&nc] () -> void {}; // expected-error{{lambda expressions are not supported yet}} (void)[&ncr] () -> void {}; // expected-error{{lambda expressions are not supported yet}} + (void)[&array] () -> void {}; // expected-error{{lambda expressions are not supported yet}} } |