[lld] e890453 - [ELF] Add test for freebsd bfdname

Shoaib Meenai via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 13 14:23:16 PDT 2020


Author: Shoaib Meenai
Date: 2020-03-13T14:16:53-07:00
New Revision: e890453d6d11b0e3065edbecf1cbba908656d30d

URL: https://github.com/llvm/llvm-project/commit/e890453d6d11b0e3065edbecf1cbba908656d30d
DIFF: https://github.com/llvm/llvm-project/commit/e890453d6d11b0e3065edbecf1cbba908656d30d.diff

LOG: [ELF] Add test for freebsd bfdname

Make sure the output error contains the full bfdname. Suggested by
George Rimar in https://reviews.llvm.org/D76109#inline-693972.

Added: 
    

Modified: 
    lld/test/ELF/incompatible.s

Removed: 
    


################################################################################
diff  --git a/lld/test/ELF/incompatible.s b/lld/test/ELF/incompatible.s
index 9a52c40eab67..c274dfd9b786 100644
--- a/lld/test/ELF/incompatible.s
+++ b/lld/test/ELF/incompatible.s
@@ -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


        


More information about the llvm-commits mailing list