Debug Info: In DIBuilder, the context field of a forward decl is updated
[oota-llvm.git] / test / DebugInfo / dwarfdump-type-units.test
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
5 FOO: debug_info contents:
6 FOO: DW_TAG_variable
7 FOO-NEXT: DW_AT_name {{.*}}"f"
8 FOO: DW_AT_type [DW_FORM_ref_sig8] ([[FOO_SIG:0x[0-9a-f]*]])
9
10 FOO: debug_types contents:
11 FOO: 0x00000000: Type Unit: {{.*}} type_signature = [[FOO_SIG]] type_offset = 0x[[FOO_OFF:[0-9a-f]*]] (next unit at
12 FOO: DW_TAG_type_unit
13 FOO-NOT: NULL
14 FOO: 0x0000[[FOO_OFF]]: DW_TAG_structure_type
15 FOO-NEXT: DW_AT_name {{.*}}"foo"
16
17 BAR: debug_info contents:
18 BAR: DW_TAG_variable
19 BAR: DW_TAG_variable
20 BAR-NEXT: DW_AT_name {{.*}}"b"
21 BAR: DW_AT_type [DW_FORM_ref_sig8] ([[BAR_SIG:0x[0-9a-f]*]])
22
23 BAR: debug_types contents:
24 BAR: 0x00000000: Type Unit: {{.*}} type_signature = [[BAR_SIG]] type_offset = 0x[[BAR_OFF:[0-9a-f]*]] (next unit at
25 BAR: DW_TAG_type_unit
26 BAR-NOT: NULL
27 BAR: 0x0000[[BAR_OFF]]: DW_TAG_structure_type
28 BAR-NEXT: DW_AT_name {{.*}}"bar"