]> granicus.if.org Git - clang/commitdiff
Add new test.
authorDevang Patel <dpatel@apple.com>
Fri, 4 Nov 2011 17:12:03 +0000 (17:12 +0000)
committerDevang Patel <dpatel@apple.com>
Fri, 4 Nov 2011 17:12:03 +0000 (17:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143706 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/debug-info-block.c [new file with mode: 0644]

diff --git a/test/CodeGen/debug-info-block.c b/test/CodeGen/debug-info-block.c
new file mode 100644 (file)
index 0000000..403e4aa
--- /dev/null
@@ -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;
+