mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
dd75275a41
This patch rewrites test case verify_die_ranges.s in YAML which helps simplify the test. Reviewed By: jhenderson, JDevlieghere, dblaikie Differential Revision: https://reviews.llvm.org/D88200
29 lines
722 B
YAML
29 lines
722 B
YAML
# RUN: yaml2obj %s -o %t.o
|
|
# RUN: not llvm-dwarfdump -verify %t.o | FileCheck %s
|
|
|
|
# CHECK: Verifying .debug_info Unit Header Chain...
|
|
# CHECK-NEXT: error: Invalid address range [0x0000000000000007, 0x0000000000000006)
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_EXEC
|
|
DWARF:
|
|
debug_abbrev:
|
|
- Table:
|
|
- Tag: DW_TAG_compile_unit
|
|
Children: DW_CHILDREN_no
|
|
Attributes:
|
|
- Attribute: DW_AT_low_pc
|
|
Form: DW_FORM_addr
|
|
- Attribute: DW_AT_high_pc
|
|
Form: DW_FORM_addr
|
|
debug_info:
|
|
- Version: 4
|
|
Entries:
|
|
- AbbrCode: 1
|
|
Values:
|
|
- Value: 0x07
|
|
- Value: 0x06
|