llvm-for-llvmta/test/tools/yaml2obj/ELF/abiversion.yaml

16 lines
402 B
YAML
Raw Normal View History

2022-04-25 10:02:23 +02:00
## Check we are able to parse/emit the ABI version with yaml2obj/obj2yaml.
# RUN: yaml2obj %s -o %t
# RUN: llvm-readobj --file-headers %t | FileCheck %s --check-prefix=FROMYAML
# RUN: obj2yaml %t | FileCheck %s --check-prefix=TOYAML
# FROMYAML: ABIVersion: 5
# TOYAML: ABIVersion: 0x5
--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
ABIVersion: 0x05