Skip to content

Commit

Permalink
[ELF] Add test for freebsd bfdname
Browse files Browse the repository at this point in the history
Make sure the output error contains the full bfdname. Suggested by
George Rimar in https://reviews.llvm.org/D76109#inline-693972.
  • Loading branch information
smeenai committed Mar 13, 2020
1 parent 42b7827 commit e890453
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lld/test/ELF/incompatible.s
Expand Up @@ -53,6 +53,11 @@
// RUN: FileCheck --check-prefix=A-AND-SCRIPT %s
// A-AND-SCRIPT: a.o is incompatible with elf32-i386

// RUN: echo 'OUTPUT_FORMAT(elf32-i386-freebsd)' > %t-freebsd.script
// RUN: not ld.lld %t-freebsd.script %ta.o -o /dev/null 2>&1 | \
// RUN: FileCheck --check-prefix=A-AND-FREEBSD-SCRIPT %s
// A-AND-FREEBSD-SCRIPT: a.o is incompatible with elf32-i386-freebsd

// We used to fail to identify this incompatibility and crash trying to
// read a 64 bit file as a 32 bit one.
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/archive2.s -o %ta.o
Expand Down

0 comments on commit e890453

Please sign in to comment.