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