xref: /llvm-project/lld/test/MachO/arch.s (revision 643ec67a64ad7a686361b1d309e5088ad8f228e9)
1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-darwin %s -o %t.o
3# RUN: %lld -o /dev/null %t.o
4# RUN: not %lld -arch i386 -o /dev/null %t.o 2>&1 | FileCheck %s
5# CHECK: error: missing or unsupported -arch i386
6
7.text
8.global _main
9_main:
10  mov $0, %rax
11  ret
12