summaryrefslogtreecommitdiffstats
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
commite742794ffa430d7b50f5c69841546deef100ca14 (patch)
tree8543aa32e00b60d2e6b73b50f24272540f5975bf
parentd7ead5b58daf2f3a3a13a2d48e497b817010120b (diff)
downloadbcm5719-llvm-e742794ffa430d7b50f5c69841546deef100ca14.tar.gz
bcm5719-llvm-e742794ffa430d7b50f5c69841546deef100ca14.zip
[LLD] [MinGW] Add a testcase for -l:name style library options. NFC.
Differential Revision: https://reviews.llvm.org/D68688 llvm-svn: 374291
-rw-r--r--lld/test/MinGW/lib.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/lld/test/MinGW/lib.test b/lld/test/MinGW/lib.test
index 56104d6d907..28f88685952 100644
--- a/lld/test/MinGW/lib.test
+++ b/lld/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
OpenPOWER on IntegriCloud