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 ("main")
6 # CHECK-NEXT: DW_AT_low_pc (0x0000000000001000)
7 # CHECK-NEXT: DW_AT_high_pc (0x0000000000002000)
8 # CHECK-NEXT: DW_AT_decl_file ("")
9 # CHECK-NEXT: DW_AT_call_line (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 ("inline1")
13 # CHECK-NEXT: DW_AT_low_pc (0x0000000000001100)
14 # CHECK-NEXT: DW_AT_high_pc (0x0000000000001200)
15 # CHECK-NEXT: DW_AT_call_file ("")
16 # CHECK-NEXT: DW_AT_call_line (10){{[[:space:]]}}
33 - Code: 0x0000000000000001
34 Tag: DW_TAG_compile_unit
35 Children: DW_CHILDREN_yes
37 - Attribute: DW_AT_name
39 - Attribute: DW_AT_language
41 - Attribute: DW_AT_low_pc
43 - Code: 0x0000000000000002
44 Tag: DW_TAG_subprogram
45 Children: DW_CHILDREN_yes
47 - Attribute: DW_AT_name
49 - Attribute: DW_AT_low_pc
51 - Attribute: DW_AT_high_pc
53 - Attribute: DW_AT_decl_file
55 - Attribute: DW_AT_call_line
57 - Code: 0x0000000000000003
58 Tag: DW_TAG_inlined_subroutine
59 Children: DW_CHILDREN_no
61 - Attribute: DW_AT_name
63 - Attribute: DW_AT_low_pc
65 - Attribute: DW_AT_high_pc
67 - Attribute: DW_AT_call_file
69 - Attribute: DW_AT_call_line
72 - Length: 0x0000000000000048
74 AbbrOffset: 0x0000000000000000
77 - AbbrCode: 0x00000001
79 - Value: 0x0000000000000001
80 - Value: 0x0000000000000002
81 - Value: 0x0000000000000000
82 - AbbrCode: 0x00000002
84 - Value: 0x000000000000000D
85 - Value: 0x0000000000001000
86 - Value: 0x0000000000002000
87 - Value: 0x0000000000000012
88 - Value: 0x0000000000000005
89 - AbbrCode: 0x00000003
91 - Value: 0x0000000000000013
92 - Value: 0x0000000000001100
93 - Value: 0x0000000000000100
94 - Value: 0x0000000000000012
95 - Value: 0x000000000000000A
96 - AbbrCode: 0x00000000
98 - AbbrCode: 0x00000000