[ThinLTO] Test we handle collisions correctly in presence of --whole-archive.
authorDavide Italiano <davide@freebsd.org>
Wed, 12 Oct 2016 20:52:52 +0000 (20:52 +0000)
committerDavide Italiano <davide@freebsd.org>
Wed, 12 Oct 2016 20:52:52 +0000 (20:52 +0000)
llvm-svn: 284050

lld/test/ELF/lto/thin-archivecollision.ll

index bd754d8..4e07187 100644 (file)
@@ -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