1 # RUN: yaml2obj %s | not llvm-dwarfdump --error-display=details --verify - | FileCheck %s --implicit-check-not=error:
3 # CHECK: error: DIE has DW_AT_decl_file with an invalid file index 2 (valid values are [1-1]){{[[:space:]]}}
4 # CHECK-NEXT: 0x0000001e: 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_data1] (0x02)
9 # CHECK-NEXT: DW_AT_call_line [DW_FORM_data1] (5){{[[:space:]]}}
10 # CHECK-NEXT: error: DIE has DW_AT_call_file with an invalid file index 3 (valid values are [1-1]){{[[:space:]]}}
11 # CHECK-NEXT: 0x00000035: DW_TAG_inlined_subroutine
12 # CHECK-NEXT: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000012] = "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_data1] (0x03)
16 # CHECK-NEXT: DW_AT_call_line [DW_FORM_data1] (10){{[[:space:]]}}
18 # CHECK: Errors detected.
34 - Code: 0x0000000000000001
35 Tag: DW_TAG_compile_unit
36 Children: DW_CHILDREN_yes
38 - Attribute: DW_AT_name
40 - Attribute: DW_AT_language
42 - Attribute: DW_AT_low_pc
44 - Attribute: DW_AT_stmt_list
45 Form: DW_FORM_sec_offset
46 - Code: 0x0000000000000002
47 Tag: DW_TAG_subprogram
48 Children: DW_CHILDREN_yes
50 - Attribute: DW_AT_name
52 - Attribute: DW_AT_low_pc
54 - Attribute: DW_AT_high_pc
56 - Attribute: DW_AT_decl_file
58 - Attribute: DW_AT_call_line
60 - Code: 0x0000000000000003
61 Tag: DW_TAG_inlined_subroutine
62 Children: DW_CHILDREN_no
64 - Attribute: DW_AT_name
66 - Attribute: DW_AT_low_pc
68 - Attribute: DW_AT_high_pc
70 - Attribute: DW_AT_call_file
72 - Attribute: DW_AT_call_line
75 - Length: 0x0000000000000046
77 AbbrOffset: 0x0000000000000000
80 - AbbrCode: 0x00000001
82 - Value: 0x0000000000000001
83 - Value: 0x0000000000000002
84 - Value: 0x0000000000000000
85 - Value: 0x0000000000000000
86 - AbbrCode: 0x00000002
88 - Value: 0x000000000000000D
89 - Value: 0x0000000000001000
90 - Value: 0x0000000000002000
91 - Value: 0x0000000000000002
92 - Value: 0x0000000000000005
93 - AbbrCode: 0x00000003
95 - Value: 0x0000000000000012
96 - Value: 0x0000000000001100
97 - Value: 0x0000000000000100
98 - Value: 0x0000000000000003
99 - Value: 0x000000000000000A
100 - AbbrCode: 0x00000000
102 - AbbrCode: 0x00000000
113 StandardOpcodeLengths: [ 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 ]