1# RUN: mkdir -p %t/a %t/b %t/c
2# RUN: cp %p/Inputs/std64.lib %t/a/
3# RUN: cp %p/Inputs/std64.lib %t/b/
4# RUN: cp %p/Inputs/std64.lib %t/c/
5
6# RUN: env LIB=%t/a lld-link /out:%t.exe /entry:main /verbose \
7# RUN:   std64.lib /subsystem:console %p/Inputs/hello64.obj \
8# RUN:   /libpath:%t/b /libpath:%t/c > %t.log
9# RUN: FileCheck -check-prefix=CHECK1 %s < %t.log
10
11CHECK1: b{{[/\\]}}std64.lib
12
13# RUN: lld-link /out:%t.exe /entry:main /verbose \
14# RUN:   std64.lib /subsystem:console %p/Inputs/hello64.obj \
15# RUN:   /libpath:%t/a /libpath:%t/b /libpath:%t/c > %t.log
16# RUN: FileCheck -check-prefix=CHECK2 %s < %t.log
17
18CHECK2: a{{[/\\]}}std64.lib
19