[lld] r313094 - Add test cases for the -l option.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 12 16:42:26 PDT 2017


Author: ruiu
Date: Tue Sep 12 16:42:26 2017
New Revision: 313094

URL: http://llvm.org/viewvc/llvm-project?rev=313094&view=rev
Log:
Add test cases for the -l option.

Added:
    lld/trunk/test/MinGW/lib.test

Added: lld/trunk/test/MinGW/lib.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/MinGW/lib.test?rev=313094&view=auto
==============================================================================
--- lld/trunk/test/MinGW/lib.test (added)
+++ lld/trunk/test/MinGW/lib.test Tue Sep 12 16:42:26 2017
@@ -0,0 +1,15 @@
+RUN: rm -rf %t/lib
+RUN: mkdir -p %t/lib
+RUN: not ld.lld -### -m i386pep -lfoo -L%t/lib 2>&1 | FileCheck -check-prefix=LIB1 %s
+LIB1: unable to find library -lfoo
+
+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 -lfoo -L%t/lib -Bstatic 2>&1 | FileCheck -check-prefix=LIB3 %s
+LIB3: unable to find library -lfoo
+
+RUN: echo > %t/lib/libfoo.a
+RUN: ld.lld -### -m i386pep -lfoo -L%t/lib -Bstatic | FileCheck -check-prefix=LIB4 %s
+LIB4: libfoo.a




More information about the llvm-commits mailing list