Add test for checking if WS2_32.dll is linked

This commit is contained in:
Christiaan Dirkx 2021-05-25 00:05:18 +02:00 committed by Simonas Kazlauskas
parent 9a6f2e655a
commit b7d2b465b9
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,9 @@
# only-windows
-include ../../run-make-fulldeps/tools.mk
# Tests that WS2_32.dll is not unnecessarily linked, see issue #85441
all:
$(RUSTC) empty.rs
objdump -p $(TMPDIR)/empty.exe | $(CGREP) -v -i "WS2_32.dll"

View File

@ -0,0 +1 @@
fn main() {}