Skip to content

Commit b7d2b46

Browse files
CDirkxnagisa
authored andcommitted
Add test for checking if WS2_32.dll is linked
1 parent 9a6f2e6 commit b7d2b46

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# only-windows
2+
3+
-include ../../run-make-fulldeps/tools.mk
4+
5+
# Tests that WS2_32.dll is not unnecessarily linked, see issue #85441
6+
7+
all:
8+
$(RUSTC) empty.rs
9+
objdump -p $(TMPDIR)/empty.exe | $(CGREP) -v -i "WS2_32.dll"
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fn main() {}

0 commit comments

Comments
 (0)