Mercurial > hg > CbC > CbC_llvm
view lld/test/COFF/implib-name-mingw.test @ 213:25ca0248ac32
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 11 Jul 2021 17:05:31 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
REQUIRES: x86 RUN: mkdir -p %t-out RUN: llvm-mc -triple x86_64-windows-gnu -filetype obj -o %t-out/object.obj %S/Inputs/object.s Check that linking without an explicit -implib doesn't produce any implib. First test that linking without -lldmingw does produce an implib, but when adding -lldmingw, it no longer is produced. And when it is explicitly named, it is created. RUN: rm -f %t-out/library.lib RUN: lld-link -dll -machine:x64 -def:%S/Inputs/named.def -out:%t-out/library.dll %t-out/object.obj -entry:f -subsystem:console RUN: test -f %t-out/library.lib RUN: rm -f %t-out/library.lib 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 RUN: not test -f %t-out/library.lib 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 RUN: test -f %t-out/library.lib