2018-06-27 06:20:04 +08:00
|
|
|
// REQUIRES: x86
|
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
|
2018-08-02 19:33:54 +08:00
|
|
|
// RUN: rm -f %t.a
|
2015-10-12 04:19:20 +08:00
|
|
|
// RUN: llvm-ar rc %t.a %ta.o
|
|
|
|
// RUN: llvm-mc -filetype=obj -triple=i686-linux %s -o %tb.o
|
2018-07-03 01:48:23 +08:00
|
|
|
// RUN: not ld.lld %t.a %tb.o -o /dev/null 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.
|
2016-11-25 04:59:44 +08:00
|
|
|
// CHECK: .a({{.*}}a.o) is incompatible with {{.*}}b.o
|
2015-10-12 04:19:20 +08:00
|
|
|
|