xref: /llvm-project/llvm/test/tools/llvm-dwarfdump/X86/verify_die_ranges.yaml (revision 09f43c107fc7688639346d3beead72472cdadbdb)
1# RUN: yaml2obj %s -o %t.o
2# RUN: not llvm-dwarfdump -verify %t.o | FileCheck %s
3
4#      CHECK: Verifying non-dwo Units...
5# CHECK-NEXT: Verifying unit: 1 / 1
6# CHECK-NEXT: error: Invalid address range [0x0000000000000007, 0x0000000000000006)
7
8--- !ELF
9FileHeader:
10  Class: ELFCLASS64
11  Data:  ELFDATA2LSB
12  Type:  ET_EXEC
13DWARF:
14  debug_abbrev:
15    - Table:
16        - Tag: DW_TAG_compile_unit
17          Children: DW_CHILDREN_no
18          Attributes:
19            - Attribute: DW_AT_low_pc
20              Form:      DW_FORM_addr
21            - Attribute: DW_AT_high_pc
22              Form:      DW_FORM_addr
23  debug_info:
24    - Version: 4
25      Entries:
26        - AbbrCode: 1
27          Values:
28            - Value: 0x07
29            - Value: 0x06
30