[PATCH] D68688: [LLD] [MinGW] Add a testcase for -l:name style library options. NFC.
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 10 01:54:20 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe742794ffa43: [LLD] [MinGW] Add a testcase for -l:name style library options. NFC. (authored by mstorsjo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68688/new/
https://reviews.llvm.org/D68688
Files:
lld/test/MinGW/lib.test
Index: lld/test/MinGW/lib.test
===================================================================
--- lld/test/MinGW/lib.test
+++ lld/test/MinGW/lib.test
@@ -7,6 +7,13 @@
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68688.224279.patch
Type: text/x-patch
Size: 737 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191010/e6854bdc/attachment.bin>
More information about the llvm-commits
mailing list