[Instrumentation] Fix a warning
[llvm-project.git] / llvm / test / tools / llvm-dwarfdump / X86 / debug-str-offsets-mixed-dwarf-4-5.yaml
blobd10460896171d6e098b30949e716ddfec0ee3b17
1 # RUN: yaml2obj %s -o %t.o
2 # RUN: llvm-dwarfdump -debug-str-offsets -verify %t.o | FileCheck %s
4 # CHECK: Verifying .debug_str_offsets...
5 # CHECK: No errors
7 # Check that when mixing standard DWARF 4 debug information with standard DWARF
8 # 5 debug information, the verifier correctly interprets the debug_str_offsets
9 # section as a standards-conforming DWARF 5 section.
11 --- !ELF
12 FileHeader:
13   Class: ELFCLASS64
14   Data:  ELFDATA2LSB
15   Type:  ET_EXEC
16 DWARF:
17   debug_str:
18     - 'cu1'
19     - 'cu2'
20   debug_str_offsets:
21     - Offsets:
22         - 0x0
23   debug_abbrev:
24     - Table:
25         - Code:            0x1
26           Tag:             DW_TAG_compile_unit
27           Children:        DW_CHILDREN_no
28           Attributes:
29             - Attribute:       DW_AT_name
30               Form:            DW_FORM_strp
31         - Code:            0x2
32           Tag:             DW_TAG_compile_unit
33           Children:        DW_CHILDREN_no
34           Attributes:
35             - Attribute:       DW_AT_name
36               Form:            DW_FORM_strx1
37             - Attribute:       DW_AT_str_offsets_base
38               Form:            DW_FORM_sec_offset
39   debug_info:
40     - Version:         4
41       AbbrevTableID:   0
42       AbbrOffset:      0x0
43       AddrSize:        8
44       Entries:
45         - AbbrCode:        0x1
46           Values:
47             - Value:           0x4
48     - Version:         5
49       UnitType:        DW_UT_compile
50       AbbrOffset:      0x0
51       AddrSize:        8
52       AbbrevTableID:   0
53       Entries:
54         - AbbrCode:        0x2
55           Values:
56             - Value:           0x0
57             - Value:           0x8 # str offsets base