1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00
llvm-mirror/test/ObjectYAML/MachO/bogus_load_command.yaml
Georgii Rymar 53a457743b Reland "[lib/Support/YAMLTraits] - Don't print leading zeroes when dumping Hex8/Hex16/Hex32 types." (https://reviews.llvm.org/D90930).
This reverts reverting commit fc40a03323a4b265ccbed34a07e281b13c5e8367
and fixes LLD (MachO/wasm) tests that failed previously.
2020-11-18 13:08:46 +03:00

42 lines
971 B
YAML

# RUN: yaml2obj %s | obj2yaml | FileCheck %s
--- !mach-o
FileHeader:
magic: 0xFEEDFACF
cputype: 0x01000007
cpusubtype: 0x80000003
filetype: 0x00000002
ncmds: 2
sizeofcmds: 56
flags: 0x00218085
reserved: 0x00000000
LoadCommands:
- cmd: 0xDEADBEEF
cmdsize: 32
ZeroPadBytes: 24
- cmd: 0xDEADBEEF
cmdsize: 24
PayloadBytes:
- 0x01
- 0x02
- 0x03
- 0x04
- 0x05
- 0x06
- 0x07
- 0x08
- 0x09
- 0x0A
- 0x0B
- 0x0C
...
#CHECK: - cmd: 0xDEADBEEF
#CHECK: cmdsize: 32
#CHECK: ZeroPadBytes:
#CHECK: - cmd: 0xDEADBEEF
#CHECK: cmdsize: 24
#CHECK: PayloadBytes: [ 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA,
#CHECK: 0xB, 0xC, 0x0, 0x0, 0x0, 0x0 ]
#CHECK-NOT: LinkEditData: