1## Check we are able to parse/emit the ABI version with yaml2obj/obj2yaml.
2
3# RUN: yaml2obj %s -o %t
4# RUN: llvm-readobj --file-headers %t | FileCheck %s --check-prefix=FROMYAML
5# RUN: obj2yaml %t | FileCheck %s --check-prefix=TOYAML
6
7# FROMYAML: ABIVersion: 5
8# TOYAML:   ABIVersion: 0x5
9
10--- !ELF
11FileHeader:
12  Class:      ELFCLASS64
13  Data:       ELFDATA2LSB
14  Type:       ET_REL
15  ABIVersion: 0x05
16