Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-dwarfdump / X86 / verify_invalid_line_file_index.yaml
blob1a0862d01efd527b4dbe869afad9455677ae868f
1 # RUN: yaml2obj %s -o %t.o
2 # RUN: not llvm-dwarfdump -debug-line -verify %t.o | FileCheck %s
4 #      CHECK: Verifying .debug_line...
5 # CHECK-NEXT: error: .debug_line[0x00000000][1] has invalid file index 5 (valid values are [1,1]):
7 --- !ELF
8 FileHeader:
9   Class: ELFCLASS64
10   Data:  ELFDATA2LSB
11   Type:  ET_EXEC
12 DWARF:
13   debug_str:
14     - ''
15     - /tmp/main.c
16   debug_abbrev:
17     - Table:
18         - Code:            0x00000001
19           Tag:             DW_TAG_compile_unit
20           Children:        DW_CHILDREN_no
21           Attributes:
22             - Attribute:       DW_AT_name
23               Form:            DW_FORM_strp
24             - Attribute:       DW_AT_stmt_list
25               Form:            DW_FORM_sec_offset
26   debug_info:
27     - Version:         4
28       AddrSize:        8
29       Entries:
30         - AbbrCode:        0x00000001
31           Values:
32             - Value:           0x0000000000000001
33             - Value:           0x0000000000000000
34   debug_line:
35     - Version:         2
36       MinInstLength:   1
37       DefaultIsStmt:   1
38       LineBase:        251
39       LineRange:       14
40       OpcodeBase:      13
41       StandardOpcodeLengths: [ 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 ]
42       IncludeDirs:
43         - /tmp
44       Files:
45         - Name:            main.c
46           DirIdx:          1
47           ModTime:         0
48           Length:          0
49       Opcodes:
50         - Opcode:          DW_LNS_extended_op
51           ExtLen:          9
52           SubOpcode:       DW_LNE_set_address
53           Data:            4096
54         - Opcode:          DW_LNS_advance_line
55           SData:           9
56           Data:            4096
57         - Opcode:          DW_LNS_copy
58           Data:            4096
59         - Opcode:          DW_LNS_advance_pc
60           Data:            16
61         - Opcode:          DW_LNS_set_file
62           Data:            5
63         - Opcode:          DW_LNS_extended_op
64           ExtLen:          1
65           SubOpcode:       DW_LNE_end_sequence
66           Data:            5