[lld] r318688 - Add missing test.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 20 11:23:37 PST 2017
Author: rafael
Date: Mon Nov 20 11:23:36 2017
New Revision: 318688
URL: http://llvm.org/viewvc/llvm-project?rev=318688&view=rev
Log:
Add missing test.
Without this we could remove
SS->getFile<ELFT>()->IsUsed = true;
from addUndefined and no test would fail.
Modified:
lld/trunk/test/ELF/as-needed.s
Modified: lld/trunk/test/ELF/as-needed.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/as-needed.s?rev=318688&r1=318687&r2=318688&view=diff
==============================================================================
--- lld/trunk/test/ELF/as-needed.s (original)
+++ lld/trunk/test/ELF/as-needed.s Mon Nov 20 11:23:36 2017
@@ -15,6 +15,10 @@
// RUN: ld.lld --as-needed %t.o %t2.so %t3.so %t4.so -o %t2
// RUN: llvm-readobj -dynamic-table %t2 | FileCheck -check-prefix=CHECK2 %s
+// Test with the .o last
+// RUN: ld.lld --as-needed %t2.so %t3.so %t4.so %t.o -o %t2
+// RUN: llvm-readobj -dynamic-table %t2 | FileCheck -check-prefix=CHECK2 %s
+
// RUN: ld.lld --as-needed %t.o %t2.so --no-as-needed %t3.so %t4.so -o %t2
// RUN: llvm-readobj -dynamic-table %t2 | FileCheck %s
More information about the llvm-commits
mailing list