1 # RUN: yaml2obj %s | llvm-dwarfdump - | FileCheck %s
3 # CHECK: 0x0000001e: DW_TAG_subprogram
4 # CHECK-NEXT: DW_AT_name ("main")
5 # CHECK-NEXT: DW_AT_low_pc (0x0000000000001000)
6 # CHECK-NEXT: DW_AT_high_pc (0x0000000000002000)
7 # CHECK-NEXT: DW_AT_decl_line (5)
8 # CHECK-NEXT: DW_AT_decl_column (2)
9 # CHECK: 0x00000035: DW_TAG_inlined_subroutine
10 # CHECK-NEXT: DW_AT_name ("inline1")
11 # CHECK-NEXT: DW_AT_low_pc (0x0000000000001100)
12 # CHECK-NEXT: DW_AT_high_pc (0x0000000000001200)
13 # CHECK-NEXT: DW_AT_call_line (10)
14 # CHECK-NEXT: DW_AT_call_column (6)
30 - Code: 0x0000000000000001
31 Tag: DW_TAG_compile_unit
32 Children: DW_CHILDREN_yes
34 - Attribute: DW_AT_name
36 - Attribute: DW_AT_language
38 - Attribute: DW_AT_low_pc
40 - Attribute: DW_AT_stmt_list
41 Form: DW_FORM_sec_offset
42 - Code: 0x0000000000000002
43 Tag: DW_TAG_subprogram
44 Children: DW_CHILDREN_yes
46 - Attribute: DW_AT_name
48 - Attribute: DW_AT_low_pc
50 - Attribute: DW_AT_high_pc
52 - Attribute: DW_AT_decl_line
54 - Attribute: DW_AT_decl_column
56 - Code: 0x0000000000000003
57 Tag: DW_TAG_inlined_subroutine
58 Children: DW_CHILDREN_no
60 - Attribute: DW_AT_name
62 - Attribute: DW_AT_low_pc
64 - Attribute: DW_AT_high_pc
66 - Attribute: DW_AT_call_line
68 - Attribute: DW_AT_call_column
71 - Length: 0x0000000000000046
73 AbbrOffset: 0x0000000000000000
76 - AbbrCode: 0x00000001
78 - Value: 0x0000000000000001
79 - Value: 0x0000000000000002
80 - Value: 0x0000000000000000
81 - Value: 0x0000000000000000
82 - AbbrCode: 0x00000002
84 - Value: 0x000000000000000D
85 - Value: 0x0000000000001000
86 - Value: 0x0000000000002000
87 - Value: 0x0000000000000005
88 - Value: 0x0000000000000002
89 - AbbrCode: 0x00000003
91 - Value: 0x0000000000000012
92 - Value: 0x0000000000001100
93 - Value: 0x0000000000000100
94 - Value: 0x000000000000000A
95 - Value: 0x0000000000000006
96 - AbbrCode: 0x00000000
98 - AbbrCode: 0x00000000