1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00
llvm-mirror/test/tools/llvm-lipo/thin-macho-binary.test
Shoaib Meenai e24eeda57d [llvm-lipo] Implement -thin
Creates thin output file of specified arch_type from the fat input file.

Patch by Anusha Basana <anushabasana@fb.com>

Differential Revision: https://reviews.llvm.org/D63341

llvm-svn: 364107
2019-06-21 21:59:01 +00:00

22 lines
703 B
Plaintext

# RUN: yaml2obj %s > %t
# RUN: not llvm-lipo %t -thin i386 2>&1 | FileCheck --check-prefix=NO_OUTPUT %s
# NO_OUTPUT: error: thin expects a single output file
# RUN: not llvm-lipo %t %t -thin i386 2>&1 | FileCheck --check-prefix=MULTIPLE_INPUT_OBJ %s
# MULTIPLE_INPUT_OBJ: thin expects a single input file
# RUN: not llvm-lipo %t -thin i386 -output %t.out 2>&1 | FileCheck --check-prefix=INPUT_FILE_THIN %s
# INPUT_FILE_THIN: must be a fat file when the -thin option is specified
--- !mach-o
FileHeader:
magic: 0xFEEDFACE
cputype: 0x00000097
cpusubtype: 0x00000003
filetype: 0x00000001
ncmds: 0
sizeofcmds: 0
flags: 0x00002000
...