1 RUN: llvm-dwarfdump %p/Inputs/dwarfdump-type-units.elf-x86-64 > %t
2 RUN: cat %t | FileCheck -check-prefix=FOO %s
3 RUN: cat %t | FileCheck -check-prefix=BAR %s
4 RUN: llvm-dwarfdump -debug-dump=types %p/Inputs/dwarfdump-type-units.elf-x86-64 | FileCheck -check-prefix=TYPES %s
6 FOO: debug_info contents:
8 FOO-NEXT: DW_AT_name {{.*}}"f"
9 FOO: DW_AT_type [DW_FORM_ref_sig8] ([[FOO_SIG:0x[0-9a-f]*]])
11 FOO: debug_types contents:
12 FOO: 0x00000000: Type Unit: {{.*}} type_signature = [[FOO_SIG]] type_offset = 0x[[FOO_OFF:[0-9a-f]*]] (next unit at
15 FOO: 0x0000[[FOO_OFF]]: DW_TAG_structure_type
16 FOO-NEXT: DW_AT_name {{.*}}"foo"
18 BAR: debug_info contents:
21 BAR-NEXT: DW_AT_name {{.*}}"b"
22 BAR: DW_AT_type [DW_FORM_ref_sig8] ([[BAR_SIG:0x[0-9a-f]*]])
24 BAR: debug_types contents:
25 BAR: 0x00000000: Type Unit: {{.*}} type_signature = [[BAR_SIG]] type_offset = 0x[[BAR_OFF:[0-9a-f]*]] (next unit at
28 BAR: 0x0000[[BAR_OFF]]: DW_TAG_structure_type
29 BAR-NEXT: DW_AT_name {{.*}}"bar"
31 TYPES-NOT: debug_info contents:
32 TYPES: debug_types contents: