summaryrefslogtreecommitdiff
path: root/test/DebugInfo/dwarfdump-type-units.test
blob: 64f4899a17dacce2345466f224c5da937d3d4aa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-type-units.elf-x86-64 | FileCheck %s

CHECK: debug_info contents:
CHECK: DW_TAG_variable
CHECK-NEXT: DW_AT_name {{.*}}"f"
CHECK: DW_AT_type [DW_FORM_ref_sig8] ([[FOO_SIG:0x[0-9a-f]*]])
CHECK: DW_TAG_variable
CHECK-NEXT: DW_AT_name {{.*}}"b"
CHECK: DW_AT_type [DW_FORM_ref_sig8] ([[BAR_SIG:0x[0-9a-f]*]])

CHECK: debug_types contents:
CHECK: 0x00000000: Type Unit: {{.*}} type_signature = [[FOO_SIG]] type_offset = 0x[[FOO_OFF:[0-9a-f]*]] (next unit at
CHECK: DW_TAG_type_unit
CHECK-NOT: NULL
CHECK: 0x0000[[FOO_OFF]]: DW_TAG_structure_type
CHECK-NEXT: DW_AT_name {{.*}}"foo"
CHECK: 0x00000000: Type Unit: {{.*}} type_signature = [[BAR_SIG]] type_offset = 0x[[BAR_OFF:[0-9a-f]*]] (next unit at
CHECK: DW_TAG_type_unit
CHECK-NOT: NULL
CHECK: 0x0000[[BAR_OFF]]: DW_TAG_structure_type
CHECK-NEXT: DW_AT_name {{.*}}"bar"