aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2019-10-10 08:52:31 +0000
committerMartin Storsjo <martin@martin.st>2019-10-10 08:52:31 +0000
commitb531f5752da816f44e71f952b9c92c9da8a20ecd (patch)
tree36b42db05ae3182611146ebb3c54918fa278bd1e /test
parent2af8248999db1c5e7e58f5914824e6f617fde2c4 (diff)
[LLD] [MinGW] Add a testcase for -l:name style library options. NFC.
Differential Revision: https://reviews.llvm.org/D68688 git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@374291 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MinGW/lib.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/MinGW/lib.test b/test/MinGW/lib.test
index 56104d6d9..28f886859 100644
--- a/test/MinGW/lib.test
+++ b/test/MinGW/lib.test
@@ -7,6 +7,13 @@ RUN: echo > %t/lib/libfoo.dll.a
RUN: ld.lld -### -m i386pep -lfoo -L%t/lib | FileCheck -check-prefix=LIB2 %s
LIB2: libfoo.dll.a
+RUN: not ld.lld -### -m i386pep -l:barefilename -L%t/lib 2>&1 | FileCheck -check-prefix=LIB-LITERAL-FAIL %s
+LIB-LITERAL-FAIL: unable to find library -l:barefilename
+
+RUN: echo > %t/lib/barefilename
+RUN: ld.lld -### -m i386pep -l:barefilename -L%t/lib 2>&1 | FileCheck -check-prefix=LIB-LITERAL %s
+LIB-LITERAL: barefilename
+
RUN: not ld.lld -### -m i386pep -Bstatic -lfoo -L%t/lib 2>&1 | FileCheck -check-prefix=LIB3 %s
LIB3: unable to find library -lfoo