xref: /llvm-project/llvm/test/tools/llvm-lipo/thin-executable-universal-binary.test (revision 55c81d4282c5da0189711261a11537bc8a7fe85c)
1# Executable testing is not supported on Windows, since all files are considered executable
2# UNSUPPORTED: system-windows
3# RUN: yaml2obj %s -o %t-universal.o
4
5# RUN: chmod a-x %t-universal.o
6# RUN: llvm-lipo %t-universal.o -thin i386 -output %t32.o
7# RUN: test ! -x %t32.o
8
9# RUN: chmod a+x %t-universal.o
10# RUN: llvm-lipo %t-universal.o -thin i386 -output %t32-ex.o
11# RUN: test -x %t32-ex.o
12
13
14
15--- !fat-mach-o
16FatHeader:
17  magic:           0xCAFEBABE
18  nfat_arch:       2
19FatArchs:
20  - cputype:         0x00000007
21    cpusubtype:      0x00000003
22    offset:          0x0000000000001000
23    size:            28
24    align:           12
25  - cputype:         0x01000007
26    cpusubtype:      0x00000003
27    offset:          0x0000000000002000
28    size:            32
29    align:           12
30Slices:
31  - !mach-o
32    FileHeader:
33      magic:           0xFEEDFACE
34      cputype:         0x00000007
35      cpusubtype:      0x00000003
36      filetype:        0x00000001
37      ncmds:           0
38      sizeofcmds:      0
39      flags:           0x00002000
40  - !mach-o
41    FileHeader:
42      magic:           0xFEEDFACF
43      cputype:         0x01000007
44      cpusubtype:      0x00000003
45      filetype:        0x00000001
46      ncmds:           0
47      sizeofcmds:      0
48      flags:           0x00002000
49      reserved:        0x00000000
50...
51