[ELF][test] add dynamic library search

llvm-svn: 178840
This commit is contained in:
Shankar Easwaran 2013-04-05 04:34:57 +00:00
parent b080267bff
commit f4a5e2f439
5 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,4 @@
int fn()
{
return 0;
}

Binary file not shown.

View File

@ -0,0 +1,4 @@
int main() {
fn();
return 0;
}

Binary file not shown.

View File

@ -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 > %t1
RUN: FileCheck %s < %t1
CHECK: {{[\/0-9A-Za-z_]+}}libfn.so