diff options
author | John McCall <rjmccall@apple.com> | 2011-02-07 18:37:40 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-02-07 18:37:40 +0000 |
commit | bb699b07426be017056c2c549ac3ffb488cab6e3 (patch) | |
tree | 6d3ec9769d1b0abf44bde9041c465f0c0c93274e /test/CodeGenCXX/blocks.cpp | |
parent | 1b528445016c2dba23babeea07e352ca8b816262 (diff) |
When copy-capturing values for a nested capture, use a BlockDeclRefExpr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125021 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/blocks.cpp')
-rw-r--r-- | test/CodeGenCXX/blocks.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGenCXX/blocks.cpp b/test/CodeGenCXX/blocks.cpp new file mode 100644 index 0000000000..568f9b1e4b --- /dev/null +++ b/test/CodeGenCXX/blocks.cpp @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 %s -fblocks -triple x86_64-apple-darwin -emit-llvm -o - | FileCheck %s + +namespace test0 { + // CHECK: define void @_ZN5test04testEi( + // CHECK: define internal void @__test_block_invoke_{{.*}}( + // CHECK: define internal void @__block_global_{{.*}}( + void test(int x) { + ^{ ^{ (void) x; }; }; + } +} |