Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-dwarfdump / X86 / verify_invalid_ranges.yaml
blob65d9c48ff77e676cab0daa2c91fb3cb7d5a506e1
1 # RUN: yaml2obj %s -o %t.o
2 # RUN: not llvm-dwarfdump -debug-info -verify %t.o | FileCheck %s
4 #      CHECK: Verifying non-dwo Units...
5 # CHECK-NEXT: Verifying unit: 1 / 1, "/tmp/main.c" 
6 # CHECK-NEXT: error: DW_AT_ranges offset is beyond .debug_ranges bounds: 0x00001000
8 --- !ELF
9 FileHeader:
10   Class: ELFCLASS64
11   Data:  ELFDATA2LSB
12   Type:  ET_EXEC
13 DWARF:
14   debug_str:
15     - ''
16     - /tmp/main.c
17   debug_abbrev:
18     - Table:
19         - Code:            0x00000001
20           Tag:             DW_TAG_compile_unit
21           Children:        DW_CHILDREN_no
22           Attributes:
23             - Attribute:       DW_AT_name
24               Form:            DW_FORM_strp
25             - Attribute:       DW_AT_ranges
26               Form:            DW_FORM_sec_offset
27   debug_info:
28     - Version:         4
29       AddrSize:        8
30       Entries:
31         - AbbrCode:        0x00000001
32           Values:
33             - Value:           0x0000000000000001
34             - Value:           0x0000000000001000