diff options
Diffstat (limited to 'test/ELF/exclude-libs.s')
-rw-r--r-- | test/ELF/exclude-libs.s | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ELF/exclude-libs.s b/test/ELF/exclude-libs.s index c36081f40e54..dc7530068586 100644 --- a/test/ELF/exclude-libs.s +++ b/test/ELF/exclude-libs.s @@ -22,6 +22,12 @@ // RUN: ld.lld -shared %t.o %t.dir/exc.a -o %t.exe --exclude-libs=ALL // RUN: llvm-readobj -dyn-symbols %t.exe | FileCheck --check-prefix=EXCLUDE %s +// RUN: ld.lld -shared --whole-archive %t.o %t.dir/exc.a -o %t.exe --exclude-libs foo,bar,exc.a +// RUN: llvm-readobj -dyn-symbols %t.exe | FileCheck --check-prefix=EXCLUDE %s + +// RUN: ld.lld -shared --whole-archive %t.o %t.dir/exc.a -o %t.exe --exclude-libs=ALL +// RUN: llvm-readobj -dyn-symbols %t.exe | FileCheck --check-prefix=EXCLUDE %s + // DEFAULT: Name: fn // EXCLUDE-NOT: Name: fn |