Shoaib Meenai | 6442317 | 2019-06-21 21:59:01 +0000 | [diff] [blame] | 1 | # Executable testing is not supported on Windows, since all files are considered executable |
Douglas Yung | 3df71e0 | 2019-06-22 01:14:29 +0000 | [diff] [blame] | 2 | # UNSUPPORTED: system-windows |
Fangrui Song | 55c81d4 | 2020-01-21 17:02:25 -0800 | [diff] [blame] | 3 | # RUN: yaml2obj %s -o %t-universal.o |
Shoaib Meenai | 6442317 | 2019-06-21 21:59:01 +0000 | [diff] [blame] | 4 | |
Bob Haarman | 6baac18 | 2019-07-26 18:44:06 +0000 | [diff] [blame] | 5 | # RUN: chmod a-x %t-universal.o |
Shoaib Meenai | 6442317 | 2019-06-21 21:59:01 +0000 | [diff] [blame] | 6 | # RUN: llvm-lipo %t-universal.o -thin i386 -output %t32.o |
Shoaib Meenai | c9e3c83 | 2019-07-15 22:44:08 +0000 | [diff] [blame] | 7 | # RUN: test ! -x %t32.o |
Shoaib Meenai | 6442317 | 2019-06-21 21:59:01 +0000 | [diff] [blame] | 8 | |
Bob Haarman | 6baac18 | 2019-07-26 18:44:06 +0000 | [diff] [blame] | 9 | # RUN: chmod a+x %t-universal.o |
Shoaib Meenai | 6442317 | 2019-06-21 21:59:01 +0000 | [diff] [blame] | 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 |
| 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 | ... |