1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 13:33:37 +02:00
llvm-mirror/test/ObjectYAML/MachO/mach_header_64.yaml
Chris Bieneman e395ee54e4 [yaml2macho] Handle mach_header_64 reserved field
I've added the reserved field as an "optional" in YAML, but I've added asserts in the yaml2macho code to enforce that the field is present in mach_header_64, but not in mach_header.

llvm-svn: 269320
2016-05-12 18:21:09 +00:00

26 lines
672 B
YAML

# RUN: yaml2obj -format=macho %s | obj2yaml | FileCheck %s
--- !mach-o
FileHeader:
magic: 0xFEEDFACF
cputype: 0x01000007
cpusubtype: 0x80000003
filetype: 0x00000002
ncmds: 0
sizeofcmds: 0
flags: 0x00218085
reserved: 0x00000000
...
# CHECK: --- !mach-o
# CHECK: FileHeader:
# CHECK: magic: 0xFEEDFACF
# CHECK: cputype: 0x01000007
# CHECK: cpusubtype: 0x80000003
# CHECK: filetype: 0x00000002
# CHECK: ncmds: 0
# CHECK: sizeofcmds: 0
# CHECK: flags: 0x00218085
# CHECK: reserved: 0x00000000
# CHECK: ...