summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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