Revert r371023 "[lib/ObjectYAML] - Stop calling error(1) when mapping the st_other...
[llvm-complete.git] / test / DebugInfo / dwarfdump-type-units.test
bloba8876a68afc1a088ce5d241f459e35f23aab4568
1 RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-type-units.elf-x86-64 | FileCheck -check-prefix=CHECK -check-prefix=LONG %s
2 RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-type-units.elf-x86-64 -summarize-types | FileCheck -check-prefix=CHECK -check-prefix=SHORT %s
3 RUN: llvm-dwarfdump -v -debug-types %p/Inputs/dwarfdump-type-units.elf-x86-64 | FileCheck -check-prefix=TYPES %s
5 CHECK: debug_info contents:
7 CHECK: DW_TAG_variable
8 CHECK-NEXT: DW_AT_name {{.*}}"f"
9 CHECK: DW_AT_type [DW_FORM_ref_sig8] ([[FOO_SIG:0x[0-9a-f]*]]
11 CHECK: DW_TAG_variable
12 CHECK-NEXT: DW_AT_name {{.*}}"b"
13 CHECK: DW_AT_type [DW_FORM_ref_sig8] ([[BAR_SIG:0x[0-9a-f]*]]
16 CHECK: debug_types contents:
18 LONG: 0x00000000: Type Unit: {{.*}} name =
19 SHORT-NOT: Type Unit
20 SHORT: name =
21 CHECK-SAME: 'bar' type_signature = [[BAR_SIG]]
22 SHORT-SAME: length =
23 LONG-SAME: type_offset = 0x[[BAR_OFF:[0-9a-f]*]] (next unit at
24 LONG: DW_TAG_type_unit
25 LONG-NOT: NULL
26 LONG: 0x0000[[BAR_OFF]]: DW_TAG_structure_type
27 LONG-NEXT: DW_AT_name {{.*}}"bar"
29 LONG: 0x00000000: Type Unit: {{.*}} name =
30 SHORT: name =
31 CHECK-SAME: 'foo' type_signature = [[FOO_SIG]]
32 LONG-SAME: type_offset = 0x[[FOO_OFF:[0-9a-f]*]] (next unit at
33 LONG: DW_TAG_type_unit
34 LONG-NOT: NULL
35 LONG: 0x0000[[FOO_OFF]]: DW_TAG_structure_type
36 LONG-NEXT: DW_AT_name {{.*}}"foo"
38 TYPES-NOT: debug_info contents:
39 TYPES: debug_types contents: