2015-10-12 04:19:20 +08:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/archive.s -o %ta.o
|
|
|
|
// RUN: llvm-ar rc %t.a %ta.o
|
|
|
|
// RUN: llvm-mc -filetype=obj -triple=i686-linux %s -o %tb.o
|
2015-11-18 14:11:01 +08:00
|
|
|
// RUN: not ld.lld %t.a %tb.o 2>&1 | FileCheck %s
|
2015-10-12 04:19:20 +08:00
|
|
|
|
|
|
|
// We used to crash when
|
|
|
|
// * The first object seen by the symbol table is from an archive.
|
|
|
|
// * -m was not used.
|
|
|
|
// CHECK: a.o is incompatible with {{.*}}b.o
|
|
|
|
|
|
|
|
// REQUIRES: x86
|