[lld] r284050 - [ThinLTO] Test we handle collisions correctly in presence of --whole-archive.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 12 13:52:52 PDT 2016


Author: davide
Date: Wed Oct 12 15:52:52 2016
New Revision: 284050

URL: http://llvm.org/viewvc/llvm-project?rev=284050&view=rev
Log:
[ThinLTO] Test we handle collisions correctly in presence of --whole-archive.

Modified:
    lld/trunk/test/ELF/lto/thin-archivecollision.ll

Modified: lld/trunk/test/ELF/lto/thin-archivecollision.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/thin-archivecollision.ll?rev=284050&r1=284049&r2=284050&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/thin-archivecollision.ll (original)
+++ lld/trunk/test/ELF/lto/thin-archivecollision.ll Wed Oct 12 15:52:52 2016
@@ -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




More information about the llvm-commits mailing list