diff options
Diffstat (limited to 'test/ELF/as-needed.s')
-rw-r--r-- | test/ELF/as-needed.s | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ELF/as-needed.s b/test/ELF/as-needed.s index 37c6103b0ed0..bcfa32d01f66 100644 --- a/test/ELF/as-needed.s +++ b/test/ELF/as-needed.s @@ -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 |