Skip to content

Commit e742794

Browse files
committed
[LLD] [MinGW] Add a testcase for -l:name style library options. NFC.
Differential Revision: https://reviews.llvm.org/D68688 llvm-svn: 374291
1 parent d7ead5b commit e742794

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lld/test/MinGW/lib.test

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ RUN: echo > %t/lib/libfoo.dll.a
77
RUN: ld.lld -### -m i386pep -lfoo -L%t/lib | FileCheck -check-prefix=LIB2 %s
88
LIB2: libfoo.dll.a
99

10+
RUN: not ld.lld -### -m i386pep -l:barefilename -L%t/lib 2>&1 | FileCheck -check-prefix=LIB-LITERAL-FAIL %s
11+
LIB-LITERAL-FAIL: unable to find library -l:barefilename
12+
13+
RUN: echo > %t/lib/barefilename
14+
RUN: ld.lld -### -m i386pep -l:barefilename -L%t/lib 2>&1 | FileCheck -check-prefix=LIB-LITERAL %s
15+
LIB-LITERAL: barefilename
16+
1017
RUN: not ld.lld -### -m i386pep -Bstatic -lfoo -L%t/lib 2>&1 | FileCheck -check-prefix=LIB3 %s
1118
LIB3: unable to find library -lfoo
1219

0 commit comments

Comments
 (0)