1# RUN: yaml2obj %s | obj2yaml | FileCheck %s 2 3--- !fat-mach-o 4FatHeader: 5 magic: 0xCAFEBABE 6 nfat_arch: 2 7FatArchs: 8 - cputype: 0x00000007 9 cpusubtype: 0x00000003 10 offset: 0x0000000000001000 11 size: 15244 12 align: 12 13 - cputype: 0x01000007 14 cpusubtype: 0x80000003 15 offset: 0x0000000000005000 16 size: 15380 17 align: 12 18Slices: 19 - FileHeader: 20 magic: 0xFEEDFACE 21 cputype: 0x00000007 22 cpusubtype: 0x00000003 23 filetype: 0x00000002 24 ncmds: 0 25 sizeofcmds: 0 26 flags: 0x01218085 27 - FileHeader: 28 magic: 0xFEEDFACF 29 cputype: 0x01000007 30 cpusubtype: 0x80000003 31 filetype: 0x00000002 32 ncmds: 0 33 sizeofcmds: 0 34 flags: 0x00218085 35 reserved: 0x00000000 36... 37 38 39#CHECK: --- !fat-mach-o 40#CHECK: FatHeader: 41#CHECK: magic: 0xCAFEBABE 42#CHECK: nfat_arch: 2 43#CHECK: FatArchs: 44#CHECK: - cputype: 0x00000007 45#CHECK: cpusubtype: 0x00000003 46#CHECK: offset: 0x0000000000001000 47#CHECK: size: 15244 48#CHECK: align: 12 49#CHECK: - cputype: 0x01000007 50#CHECK: cpusubtype: 0x80000003 51#CHECK: offset: 0x0000000000005000 52#CHECK: size: 15380 53#CHECK: align: 12 54#CHECK: Slices: 55#CHECK: - !mach-o 56#CHECK FileHeader: 57#CHECK: magic: 0xFEEDFACE 58#CHECK: cputype: 0x00000007 59#CHECK: cpusubtype: 0x00000003 60#CHECK: filetype: 0x00000002 61#CHECK: ncmds: 0 62#CHECK: sizeofcmds: 0 63#CHECK: flags: 0x01218085 64#CHECK: - !mach-o 65#CHECK FileHeader: 66#CHECK: magic: 0xFEEDFACF 67#CHECK: cputype: 0x01000007 68#CHECK: cpusubtype: 0x80000003 69#CHECK: filetype: 0x00000002 70#CHECK: ncmds: 0 71#CHECK: sizeofcmds: 0 72#CHECK: flags: 0x00218085 73#CHECK: reserved: 0x00000000 74#CHECK: ... 75