1 # RUN: yaml2obj %s | not llvm-dwarfdump --verify - | FileCheck %s --implicit-check-not=error:
3 # CHECK: error: DIE has DW_AT_decl_file with invalid encoding{{[[:space:]]}}
4 # CHECK-NEXT: 0x0000001a: DW_TAG_subprogram
5 # CHECK-NEXT: DW_AT_name [DW_FORM_strp] ( .debug_str[0x0000000d] = "main")
6 # CHECK-NEXT: DW_AT_low_pc [DW_FORM_addr] (0x0000000000001000)
7 # CHECK-NEXT: DW_AT_high_pc [DW_FORM_addr] (0x0000000000002000)
8 # CHECK-NEXT: DW_AT_decl_file [DW_FORM_strp] ( .debug_str[0x00000012] = "")
9 # CHECK-NEXT: DW_AT_call_line [DW_FORM_data1] (5){{[[:space:]]}}
10 # CHECK-NEXT: error: DIE has DW_AT_call_file with invalid encoding{{[[:space:]]}}
11 # CHECK-NEXT: 0x00000034: DW_TAG_inlined_subroutine
12 # CHECK-NEXT: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000013] = "inline1")
13 # CHECK-NEXT: DW_AT_low_pc [DW_FORM_addr] (0x0000000000001100)
14 # CHECK-NEXT: DW_AT_high_pc [DW_FORM_data4] (0x00000100)
15 # CHECK-NEXT: DW_AT_call_file [DW_FORM_strp] ( .debug_str[0x00000012] = "")
16 # CHECK-NEXT: DW_AT_call_line [DW_FORM_data1] (10){{[[:space:]]}}
17 # CHECK-NEXT: error: DIE has DW_AT_decl_file with invalid encoding{{[[:space:]]}}
18 # CHECK-NEXT: 0x0000004a: DW_TAG_subprogram
19 # CHECK-NEXT: DW_AT_name [DW_FORM_strp] ( .debug_str[0x0000001b] = "foo")
20 # CHECK-NEXT: DW_AT_low_pc [DW_FORM_addr] (0x0000000000002000)
21 # CHECK-NEXT: DW_AT_high_pc [DW_FORM_addr] (0x0000000000003000)
22 # CHECK-NEXT: DW_AT_decl_file [DW_FORM_sdata] (2)
23 # CHECK-NEXT: DW_AT_decl_line [DW_FORM_sdata] (3)
24 # CHECK-NEXT: DW_AT_call_file [DW_FORM_sdata] (4)
25 # CHECK-NEXT: DW_AT_call_line [DW_FORM_sdata] (5){{[[:space:]]}}
26 # CHECK-NEXT: error: DIE has DW_AT_decl_line with invalid encoding{{[[:space:]]}}
27 # CHECK-NEXT: 0x0000004a: DW_TAG_subprogram
28 # CHECK-NEXT: DW_AT_name [DW_FORM_strp] ( .debug_str[0x0000001b] = "foo")
29 # CHECK-NEXT: DW_AT_low_pc [DW_FORM_addr] (0x0000000000002000)
30 # CHECK-NEXT: DW_AT_high_pc [DW_FORM_addr] (0x0000000000003000)
31 # CHECK-NEXT: DW_AT_decl_file [DW_FORM_sdata] (2)
32 # CHECK-NEXT: DW_AT_decl_line [DW_FORM_sdata] (3)
33 # CHECK-NEXT: DW_AT_call_file [DW_FORM_sdata] (4)
34 # CHECK-NEXT: DW_AT_call_line [DW_FORM_sdata] (5){{[[:space:]]}}
35 # CHECK-NEXT: error: DIE has DW_AT_call_file with invalid encoding{{[[:space:]]}}
36 # CHECK-NEXT: 0x0000004a: DW_TAG_subprogram
37 # CHECK-NEXT: DW_AT_name [DW_FORM_strp] ( .debug_str[0x0000001b] = "foo")
38 # CHECK-NEXT: DW_AT_low_pc [DW_FORM_addr] (0x0000000000002000)
39 # CHECK-NEXT: DW_AT_high_pc [DW_FORM_addr] (0x0000000000003000)
40 # CHECK-NEXT: DW_AT_decl_file [DW_FORM_sdata] (2)
41 # CHECK-NEXT: DW_AT_decl_line [DW_FORM_sdata] (3)
42 # CHECK-NEXT: DW_AT_call_file [DW_FORM_sdata] (4)
43 # CHECK-NEXT: DW_AT_call_line [DW_FORM_sdata] (5){{[[:space:]]}}
44 # CHECK-NEXT: error: DIE has DW_AT_call_line with invalid encoding{{[[:space:]]}}
45 # CHECK-NEXT: 0x0000004a: DW_TAG_subprogram
46 # CHECK-NEXT: DW_AT_name [DW_FORM_strp] ( .debug_str[0x0000001b] = "foo")
47 # CHECK-NEXT: DW_AT_low_pc [DW_FORM_addr] (0x0000000000002000)
48 # CHECK-NEXT: DW_AT_high_pc [DW_FORM_addr] (0x0000000000003000)
49 # CHECK-NEXT: DW_AT_decl_file [DW_FORM_sdata] (2)
50 # CHECK-NEXT: DW_AT_decl_line [DW_FORM_sdata] (3)
51 # CHECK-NEXT: DW_AT_call_file [DW_FORM_sdata] (4)
52 # CHECK-NEXT: DW_AT_call_line [DW_FORM_sdata] (5){{[[:space:]]}}
70 - Code: 0x0000000000000001
71 Tag: DW_TAG_compile_unit
72 Children: DW_CHILDREN_yes
74 - Attribute: DW_AT_name
76 - Attribute: DW_AT_language
78 - Attribute: DW_AT_low_pc
80 - Code: 0x0000000000000002
81 Tag: DW_TAG_subprogram
82 Children: DW_CHILDREN_yes
84 - Attribute: DW_AT_name
86 - Attribute: DW_AT_low_pc
88 - Attribute: DW_AT_high_pc
90 - Attribute: DW_AT_decl_file
92 - Attribute: DW_AT_call_line
94 - Code: 0x0000000000000003
95 Tag: DW_TAG_inlined_subroutine
96 Children: DW_CHILDREN_no
98 - Attribute: DW_AT_name
100 - Attribute: DW_AT_low_pc
102 - Attribute: DW_AT_high_pc
104 - Attribute: DW_AT_call_file
106 - Attribute: DW_AT_call_line
108 - Code: 0x0000000000000004
109 Tag: DW_TAG_subprogram
110 Children: DW_CHILDREN_no
112 - Attribute: DW_AT_name
114 - Attribute: DW_AT_low_pc
116 - Attribute: DW_AT_high_pc
118 - Attribute: DW_AT_decl_file
120 - Attribute: DW_AT_decl_line
122 - Attribute: DW_AT_call_file
124 - Attribute: DW_AT_call_line
127 - Length: 0x0000000000000061
129 AbbrOffset: 0x0000000000000000
132 - AbbrCode: 0x00000001
134 - Value: 0x0000000000000001
135 - Value: 0x0000000000000002
136 - Value: 0x0000000000000000
137 - AbbrCode: 0x00000002
139 - Value: 0x000000000000000D
140 - Value: 0x0000000000001000
141 - Value: 0x0000000000002000
142 - Value: 0x0000000000000012
143 - Value: 0x0000000000000005
144 - AbbrCode: 0x00000003
146 - Value: 0x0000000000000013
147 - Value: 0x0000000000001100
148 - Value: 0x0000000000000100
149 - Value: 0x0000000000000012
150 - Value: 0x000000000000000A
151 - AbbrCode: 0x00000004
153 - Value: 0x000000000000001B
154 - Value: 0x0000000000002000
155 - Value: 0x0000000000003000
156 - Value: 0x0000000000000002
157 - Value: 0x0000000000000003
158 - Value: 0x0000000000000004
159 - Value: 0x0000000000000005
160 - AbbrCode: 0x00000000
162 - AbbrCode: 0x00000000