xref: /llvm-project/llvm/test/tools/yaml2obj/ELF/header-elfdatanone.yaml (revision a6436b0b3a7fd9f13d7a059a6a78544a7e0b702f)
1## We have a YAML file describing an invalid data type.
2## Check we are able to produce the invalid binary.
3
4# RUN: yaml2obj %s -o %t.o
5
6## Check that EI_DATA field is ELFDATANONE(0)
7# RUN:   od -b %t.o +5 | FileCheck %s
8# CHECK: 0000005 000
9
10--- !ELF
11FileHeader:
12  Class: ELFCLASS64
13  Data:  ELFDATANONE
14  Type:  ET_REL
15