3 RUN: llvm-mc -triple x86_64-windows-gnu -filetype obj -o %t-out/object.obj %S/Inputs/object.s
5 Check that linking without an explicit -implib doesn't produce any implib.
7 First test that linking without -lldmingw does produce an implib, but when
8 adding -lldmingw, it no longer is produced. And when it is explicitly named,
11 RUN: rm -f %t-out/library.lib
12 RUN: lld-link -dll -machine:x64 -def:%S/Inputs/named.def -out:%t-out/library.dll %t-out/object.obj -entry:f -subsystem:console
13 RUN: test -f %t-out/library.lib
15 RUN: rm -f %t-out/library.lib
16 RUN: lld-link -lldmingw -dll -machine:x64 -def:%S/Inputs/named.def -out:%t-out/library.dll %t-out/object.obj -entry:f -subsystem:console
17 RUN: not test -f %t-out/library.lib
19 RUN: lld-link -lldmingw -dll -machine:x64 -def:%S/Inputs/named.def -out:%t-out/library.dll %t-out/object.obj -entry:f -subsystem:console -implib:%t-out/library.lib
20 RUN: test -f %t-out/library.lib