summaryrefslogtreecommitdiff
path: root/lld/test/MachO/arch-multiple.s
blob: 1ec064e505d28ac18a4526ea1492c56177b0880b (plain)
1
2
3
4
5
6
7
8
9
10
11
# REQUIRES: x86

# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t.o %s
# RUN: not %lld -o %t.out -arch_multiple %t.o 2>&1 | FileCheck %s

# CHECK: error: undefined symbol for arch x86_64: _foo

.globl _main
_main:
  callq _foo
  ret