[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / llvm / test / tools / llvm-lipo / thin-executable-universal-binary.test
blob40cf9cc7eab968e47e088a65adfd35972111a012
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
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
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
15 --- !fat-mach-o
16 FatHeader:
17   magic:           0xCAFEBABE
18   nfat_arch:       2
19 FatArchs:
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
30 Slices:
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 ...