1 ## This test checks that error is reported if opcode_operands_table_flag
4 # RUN: yaml2obj %s -o %t.o
5 # RUN: llvm-dwarfutil %t.o %t1 2>&1 | FileCheck --check-prefix=ERR %s
6 # RUN: llvm-dwarfdump --verify %t1 | FileCheck --check-prefix=VERIFY %s
7 # RUN: llvm-dwarfdump -a %t1 | FileCheck %s
9 # RUN: llvm-dwarfutil --linker parallel %t.o %t1 2>&1 | FileCheck --check-prefix=ERR %s
10 # RUN: llvm-dwarfdump --verify %t1 | FileCheck --check-prefix=VERIFY %s
11 # RUN: llvm-dwarfdump -a %t1 | FileCheck %s
13 # ERR: error: opcode_operands_table is not supported
17 ## Content: "05000403000200":
19 ## .short 5 # Macro information version
20 ## .byte 0 # Flags: 32 bit
21 ## .byte 3 # DW_MACRO_start_file
22 ## .byte 0 # Line Number
23 ## .byte 2 # File Number
24 ## .byte 0 # End Of Macro List Mark
26 #CHECK: .debug_info contents:
27 #CHECK: DW_TAG_compile_unit
28 #CHECK: DW_AT_name ("CU1")
29 #CHECK-NOT: DW_AT_macros
30 #CHECK-NOT: .debug_macro contents:
41 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
47 Content: "05000403000200"
48 - Name: .debug_str_offsets
51 Content: "080000000500000000000000"
55 - Tag: DW_TAG_compile_unit
56 Children: DW_CHILDREN_yes
58 - Attribute: DW_AT_producer
60 - Attribute: DW_AT_language
62 - Attribute: DW_AT_name
64 - Attribute: DW_AT_low_pc
66 - Attribute: DW_AT_high_pc
68 - Attribute: DW_AT_macros
69 Form: DW_FORM_sec_offset
70 - Attribute: DW_AT_str_offsets_base
71 Form: DW_FORM_sec_offset
72 - Tag: DW_TAG_class_type
73 Children: DW_CHILDREN_yes
75 - Attribute: DW_AT_name
78 Children: DW_CHILDREN_no
80 - Attribute: DW_AT_type
82 - Attribute: DW_AT_name
84 - Tag: DW_TAG_class_type
85 Children: DW_CHILDREN_no
87 - Attribute: DW_AT_name
89 - Attribute: DW_AT_declaration
90 Form: DW_FORM_flag_present
91 - Tag: DW_TAG_class_type
92 Children: DW_CHILDREN_yes
94 - Attribute: DW_AT_name
96 - Attribute: DW_AT_declaration
97 Form: DW_FORM_flag_present
98 - Tag: DW_TAG_template_type_parameter
99 Children: DW_CHILDREN_no
101 - Attribute: DW_AT_type
103 - Tag: DW_TAG_base_type
104 Children: DW_CHILDREN_no
106 - Attribute: DW_AT_name
108 - Tag: DW_TAG_pointer_type
109 Children: DW_CHILDREN_no
111 - Attribute: DW_AT_type
113 - Tag: DW_TAG_variable
114 Children: DW_CHILDREN_no
116 - Attribute: DW_AT_name
118 - Attribute: DW_AT_const_value
120 - Attribute: DW_AT_type
122 - Tag: DW_TAG_subprogram
123 Children: DW_CHILDREN_no
125 - Attribute: DW_AT_name
127 - Attribute: DW_AT_low_pc
129 - Attribute: DW_AT_high_pc
131 - Attribute: DW_AT_type
135 UnitType: DW_UT_compile