aboutsummaryrefslogblamecommitdiff
path: root/test/ELF/incompatible-ar-first.s
blob: e076561d11ae5a5956db1daaecd677262ab2e018 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                                  
                                                      

                
// 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
// RUN: not ld.lld %t.a %tb.o 2>&1 | FileCheck %s

// We used to crash when
// * The first object seen by the symbol table is from an archive.
// * -m was not used.
// CHECK: .a({{.*}}a.o) is incompatible with {{.*}}b.o

// REQUIRES: x86