summaryrefslogtreecommitdiff
path: root/test/elf/X86_64/dynlib-search.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/elf/X86_64/dynlib-search.test')
-rw-r--r--test/elf/X86_64/dynlib-search.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/elf/X86_64/dynlib-search.test b/test/elf/X86_64/dynlib-search.test
new file mode 100644
index 0000000000000..017208ac11ad3
--- /dev/null
+++ b/test/elf/X86_64/dynlib-search.test
@@ -0,0 +1,6 @@
+# This tests the functionality for finding the shared library libfn.so for ELF
+RUN: lld -flavor gnu -target x86_64 %p/Inputs/main.o -L%p/Inputs/ -lfn -o %t \
+RUN: --noinhibit-exec -t 2> %t1
+RUN: FileCheck %s < %t1
+
+CHECK: {{[\/0-9A-Za-z_]+}}libfn.so