xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/debug-info-block.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fblocks -g -emit-llvm -o - %s | FileCheck %s
2*f4a2713aSLionel Sambuc // APPLE LOCAL file 5939894 */
3*f4a2713aSLionel Sambuc // Verify that the desired debugging type is generated for a structure
4*f4a2713aSLionel Sambuc //  member that is a pointer to a block.
5*f4a2713aSLionel Sambuc 
6*f4a2713aSLionel Sambuc // CHECK: __block_literal_generic{{.*}}DW_TAG_structure_type
7*f4a2713aSLionel Sambuc // CHECK: __block_descriptor{{.*}}DW_TAG_structure_type
8*f4a2713aSLionel Sambuc struct inStruct {
9*f4a2713aSLionel Sambuc   void (^genericBlockPtr)();
10*f4a2713aSLionel Sambuc } is;
11*f4a2713aSLionel Sambuc 
12