summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2016-10-12 20:52:52 +0000
committerDavide Italiano <davide@freebsd.org>2016-10-12 20:52:52 +0000
commit726f96e63fa6c40d63b920af4c060cc6c5630e67 (patch)
tree12c4c8d93f65522b72fb2cc34c800c7555766fff
parent3cb5ffeb3547ec17116b29ce0cfca3b552026a5b (diff)
downloadbcm5719-llvm-726f96e63fa6c40d63b920af4c060cc6c5630e67.tar.gz
bcm5719-llvm-726f96e63fa6c40d63b920af4c060cc6c5630e67.zip
[ThinLTO] Test we handle collisions correctly in presence of --whole-archive.
llvm-svn: 284050
-rw-r--r--lld/test/ELF/lto/thin-archivecollision.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/lld/test/ELF/lto/thin-archivecollision.ll b/lld/test/ELF/lto/thin-archivecollision.ll
index bd754d8db54..4e07187f36a 100644
--- a/lld/test/ELF/lto/thin-archivecollision.ll
+++ b/lld/test/ELF/lto/thin-archivecollision.ll
@@ -7,6 +7,10 @@
; RUN: ld.lld %t.o %t1.a %t2.a -o %t
; RUN: llvm-nm %t | FileCheck %s
+; Check we handle this case correctly even in presence of --whole-archive.
+; RUN: ld.lld %t.o --whole-archive %t1.a %t2.a -o %t
+; RUN: llvm-nm %t | FileCheck %s
+
; CHECK: T _start
; CHECK: T blah
; CHECK: T foo
OpenPOWER on IntegriCloud