xref: /llvm-project/llvm/test/tools/llvm-lipo/create-executable.test (revision 55c81d4282c5da0189711261a11537bc8a7fe85c)
1# Executable testing is not supported on Windows, since all files are considered executable
2# UNSUPPORTED: system-windows
3# RUN: yaml2obj %p/Inputs/i386-slice.yaml -o %t-i386.o
4# RUN: yaml2obj %p/Inputs/x86_64-slice.yaml -o %t-x86_64.o
5
6# RUN: chmod a-x %t-i386.o
7# RUN: chmod a-x %t-x86_64.o
8# RUN: llvm-lipo %t-i386.o %t-x86_64.o -create -output %t-universal.o
9# RUN: test ! -x %t-universal.o
10
11# RUN: chmod a+x %t-i386.o
12# RUN: llvm-lipo %t-i386.o %t-x86_64.o -create -output %t-universal.o
13# RUN: test -x %t-universal.o
14