1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=i386-apple-darwin %s -o %t.i386.o 3# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.x86_64.o 4# RUN: llvm-lipo %t.i386.o %t.x86_64.o -create -o %t.fat.o 5# RUN: %lld -o /dev/null %t.fat.o 6 7# RUN: llvm-lipo %t.i386.o -create -o %t.noarch.o 8# RUN: not %lld -o /dev/null %t.noarch.o 2>&1 | \ 9# RUN: FileCheck %s -DFILE=%t.noarch.o 10# CHECK: error: unable to find matching architecture in [[FILE]] 11 12.text 13.global _main 14_main: 15 mov $0, %eax 16 ret 17