1# RUN: yaml2obj %s | not llvm-dwarfdump --verify - | FileCheck %s --implicit-check-not=error:
2
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:]]}}
17
18--- !ELF
19FileHeader:
20  Class:   ELFCLASS64
21  Data:    ELFDATA2LSB
22  Type:    ET_EXEC
23  Machine: EM_X86_64
24DWARF:
25  debug_str:
26    - ''
27    - '/tmp/main.c'
28    - main
29    - ''
30    - inline1
31  debug_abbrev:
32    - Table:
33        - Code:            0x0000000000000001
34          Tag:             DW_TAG_compile_unit
35          Children:        DW_CHILDREN_yes
36          Attributes:
37            - Attribute:       DW_AT_name
38              Form:            DW_FORM_strp
39            - Attribute:       DW_AT_language
40              Form:            DW_FORM_data2
41            - Attribute:       DW_AT_low_pc
42              Form:            DW_FORM_addr
43        - Code:            0x0000000000000002
44          Tag:             DW_TAG_subprogram
45          Children:        DW_CHILDREN_yes
46          Attributes:
47            - Attribute:       DW_AT_name
48              Form:            DW_FORM_strp
49            - Attribute:       DW_AT_low_pc
50              Form:            DW_FORM_addr
51            - Attribute:       DW_AT_high_pc
52              Form:            DW_FORM_addr
53            - Attribute:       DW_AT_decl_file
54              Form:            DW_FORM_strp
55            - Attribute:       DW_AT_call_line
56              Form:            DW_FORM_data1
57        - Code:            0x0000000000000003
58          Tag:             DW_TAG_inlined_subroutine
59          Children:        DW_CHILDREN_no
60          Attributes:
61            - Attribute:       DW_AT_name
62              Form:            DW_FORM_strp
63            - Attribute:       DW_AT_low_pc
64              Form:            DW_FORM_addr
65            - Attribute:       DW_AT_high_pc
66              Form:            DW_FORM_data4
67            - Attribute:       DW_AT_call_file
68              Form:            DW_FORM_strp
69            - Attribute:       DW_AT_call_line
70              Form:            DW_FORM_data1
71  debug_info:
72    - Length:          0x0000000000000048
73      Version:         4
74      AbbrOffset:      0x0000000000000000
75      AddrSize:        8
76      Entries:
77        - AbbrCode:        0x00000001
78          Values:
79            - Value:           0x0000000000000001
80            - Value:           0x0000000000000002
81            - Value:           0x0000000000000000
82        - AbbrCode:        0x00000002
83          Values:
84            - Value:           0x000000000000000D
85            - Value:           0x0000000000001000
86            - Value:           0x0000000000002000
87            - Value:           0x0000000000000012
88            - Value:           0x0000000000000005
89        - AbbrCode:        0x00000003
90          Values:
91            - Value:           0x0000000000000013
92            - Value:           0x0000000000001100
93            - Value:           0x0000000000000100
94            - Value:           0x0000000000000012
95            - Value:           0x000000000000000A
96        - AbbrCode:        0x00000000
97          Values:          []
98        - AbbrCode:        0x00000000
99          Values:          []
100...
101