Fangrui Song | 55c81d4 | 2020-01-21 17:02:25 -0800 | [diff] [blame] | 1 | # RUN: yaml2obj %p/Inputs/i386-slice.yaml -o %t-32.o |
| 2 | # RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o |
Shoaib Meenai | 16a9632 | 2019-07-18 22:48:38 +0000 | [diff] [blame] | 3 | |
| 4 | # RUN: not llvm-lipo %t-32.o -create 2>&1 | FileCheck --check-prefix=NO_OUTPUT %s |
| 5 | # NO_OUTPUT: error: create expects a single output file to be specified |
| 6 | |
| 7 | # RUN: not llvm-lipo %t-universal.o %t-32.o -create -output %t.o 2>&1 | FileCheck --check-prefix=DUPLICATE_ARCHS %s |
| 8 | # DUPLICATE_ARCHS: have the same architecture i386 and therefore cannot be in the same universal binary |