diff options
author | Devang Patel <dpatel@apple.com> | 2011-11-04 17:12:03 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-11-04 17:12:03 +0000 |
commit | e71eb2386f90c07460ea671ab6ead35d9067718c (patch) | |
tree | 52bb3d539ea9827c8f36ae94236b790746c599a0 | |
parent | c915bc94892347e7084a61b7276e7614491cddcb (diff) |
Add new test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143706 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/debug-info-block.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/debug-info-block.c b/test/CodeGen/debug-info-block.c new file mode 100644 index 0000000000..403e4aaccb --- /dev/null +++ b/test/CodeGen/debug-info-block.c @@ -0,0 +1,11 @@ +// RUN: %clang_cc1 -fblocks -g -emit-llvm -o - %s | FileCheck %s +// APPLE LOCAL file 5939894 */ +// Verify that the desired debugging type is generated for a structure +// member that is a pointer to a block. + +// CHECK: __block_literal_generic{{.*}}DW_TAG_structure_type +// CHECK: __block_descriptor{{.*}}DW_TAG_structure_type +struct inStruct { + void (^genericBlockPtr)(); +} is; + |