1# RUN: yaml2obj %s -o %t
2# RUN: llvm-objcopy %t %t.copy
3# RUN: cmp %t %t.copy
4
5--- !mach-o
6FileHeader:
7  magic:           0xFEEDFACF
8  cputype:         0x0100000C
9  cpusubtype:      0x00000000
10  filetype:        0x00000002
11  ncmds:           1
12  sizeofcmds:      80
13  flags:           0x00002000
14  reserved:        0x00000000
15LoadCommands:
16 - cmd:             LC_LOAD_WEAK_DYLIB
17   cmdsize:         80
18   dylib:
19     name:            24
20     timestamp:       2
21     current_version: 65536
22     compatibility_version: 65536
23   PayloadString:   '/System/Library/Frameworks/Network.framework/Network'
24   ZeroPadBytes:    4
25...
26