forked from OSchip/llvm-project
[LLD] [MinGW] Add a testcase for -l:name style library options. NFC.
Differential Revision: https://reviews.llvm.org/D68688 llvm-svn: 374291
This commit is contained in:
parent
d7ead5b58d
commit
e742794ffa
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue