15 lines · plain
1// REQUIRES: x862// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/archive.s -o %ta.o3// RUN: rm -f %t.a4// RUN: llvm-ar rc %t.a %ta.o5// RUN: llvm-mc -filetype=obj -triple=i686-linux %s -o %tb.o6// RUN: not ld.lld %t.a %tb.o -o /dev/null 2>&1 | FileCheck %s7 8// We used to crash when9// * The first object seen by the symbol table is from an archive.10// * -m was not used.11 12// RUN: not ld.lld --start-lib %ta.o --end-lib %tb.o -o /dev/null 2>&1 | FileCheck %s13 14// CHECK: {{.*}}b.o is incompatible{{$}}15