zig/deps/lld/test/ELF/lazy-arch-conflict.s
2019-02-07 17:07:18 -05:00

8 lines
353 B
ArmAsm

# REQUIRES: x86
# RUN: echo '.globl foo; .weak foo; .quad foo;' | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t64.o
# RUN: echo '.globl foo; foo:' | llvm-mc -filetype=obj -triple=i686-pc-linux - -o %t32.o
# RUN: not ld.lld %t64.o --start-lib %t32.o --end-lib -o /dev/null 2>&1 | FileCheck %s
# CHECK: error: incompatible file: {{.*}}32.o