1 ## This test checks DWARFv4 DW_MACINFO_vendor_ext attribute.
3 # RUN: yaml2obj %s -o %t.o
4 # RUN: llvm-dwarfutil %t.o %t1
5 # RUN: llvm-dwarfdump -a %t1 | FileCheck %s
7 ## Content: "030002FF0656000400":
9 ## .byte 3 # DW_MACINFO_start_file
10 ## .byte 0 # Line Number
11 ## .byte 2 # File Number
12 ## .byte ff # DW_MACINFO_vendor_ext
13 ## .byte 6 # Line Number
14 ## .asciz "V" # Macro String
15 ## .byte 4 # DW_MACINFO_end_file
16 ## .byte 0 # End Of Macro List Mark
18 #CHECK: .debug_info contents:
19 #CHECK: DW_TAG_compile_unit
20 #CHECK: DW_AT_name ("CU1")
21 #CHECK: DW_AT_macro_info (0x00000000)
22 #CHECK: .debug_macinfo contents:
24 #CHECK: DW_MACINFO_start_file - lineno: 0 filenum: 2
25 #CHECK: DW_MACINFO_invalid
36 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
39 - Name: .debug_macinfo
42 Content: "030002FF0656000400"
46 - Tag: DW_TAG_compile_unit
47 Children: DW_CHILDREN_yes
49 - Attribute: DW_AT_producer
51 - Attribute: DW_AT_language
53 - Attribute: DW_AT_name
55 - Attribute: DW_AT_low_pc
57 - Attribute: DW_AT_high_pc
59 - Attribute: DW_AT_macro_info
60 Form: DW_FORM_sec_offset
61 - Tag: DW_TAG_class_type
62 Children: DW_CHILDREN_yes
64 - Attribute: DW_AT_name
67 Children: DW_CHILDREN_no
69 - Attribute: DW_AT_type
71 - Attribute: DW_AT_name
73 - Tag: DW_TAG_class_type
74 Children: DW_CHILDREN_no
76 - Attribute: DW_AT_name
78 - Attribute: DW_AT_declaration
79 Form: DW_FORM_flag_present
80 - Tag: DW_TAG_class_type
81 Children: DW_CHILDREN_yes
83 - Attribute: DW_AT_name
85 - Attribute: DW_AT_declaration
86 Form: DW_FORM_flag_present
87 - Tag: DW_TAG_template_type_parameter
88 Children: DW_CHILDREN_no
90 - Attribute: DW_AT_type
92 - Tag: DW_TAG_base_type
93 Children: DW_CHILDREN_no
95 - Attribute: DW_AT_name
97 - Tag: DW_TAG_pointer_type
98 Children: DW_CHILDREN_no
100 - Attribute: DW_AT_type
102 - Tag: DW_TAG_variable
103 Children: DW_CHILDREN_no
105 - Attribute: DW_AT_name
107 - Attribute: DW_AT_const_value
109 - Attribute: DW_AT_type
111 - Tag: DW_TAG_subprogram
112 Children: DW_CHILDREN_no
114 - Attribute: DW_AT_name
116 - Attribute: DW_AT_low_pc
118 - Attribute: DW_AT_high_pc
120 - Attribute: DW_AT_type