Skip to content

Commit 9028f86

Browse files
authored
[LLD][COFF] Check successful linking without /nodefaultlib
1 parent 9ef907a commit 9028f86

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lld/test/COFF/nodefaultlib.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,6 @@ UPPERCASE-NOT: LIBCMT
4040
# RUN: yaml2obj -o %T/defaultlib.obj %p/Inputs/defaultlib.yaml
4141
# RUN: mkdir -p %t.dir/sysroot/VC/Tools/MSVC/1.1.1.1/lib/x64
4242
# RUN: cp %p/Inputs/ret42.lib %t.dir/sysroot/VC/Tools/MSVC/1.1.1.1/lib/x64/default.lib
43+
44+
# RUN: lld-link /winsysroot:%t.dir/sysroot /out:%t.exe /entry:main /subsystem:console %T/defaultlib.obj
4345
# RUN: not lld-link /winsysroot:%t.dir/sysroot /out:%t.exe /entry:main /subsystem:console /nodefaultlib:default.lib %T/defaultlib.obj

0 commit comments

Comments
 (0)