Skip to content

Commit

Permalink
Add test for checking if WS2_32.dll is linked
Browse files Browse the repository at this point in the history
  • Loading branch information
CDirkx authored and nagisa committed Oct 2, 2021
1 parent 9a6f2e6 commit b7d2b46
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/run-make/issue-85441/Makefile
Original file line number Diff line number Diff line change
@@ -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"
1 change: 1 addition & 0 deletions src/test/run-make/issue-85441/empty.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fn main() {}

0 comments on commit b7d2b46

Please sign in to comment.