Skip to content

Commit 87abd65

Browse files
committed
Add test for rust-lang#50176
1 parent db9a84a commit 87abd65

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
include ../tools.mk
2+
3+
# only-windows-gnu
4+
5+
all:
6+
$(RUSTC) foo.rs
7+
# FIXME: we should make sure __stdcall calling convention is used here
8+
# but that only works with LLD right now
9+
nm -g "$(call IMPLIB,foo)" | $(CGREP) bar
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#![crate_type = "cdylib"]
2+
3+
#[no_mangle]
4+
pub extern "system" fn bar() {}

src/test/run-make-fulldeps/tools.mk

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ ifdef IS_MSVC
4848
STATICLIB = $(TMPDIR)/$(1).lib
4949
STATICLIB_GLOB = $(1)*.lib
5050
else
51+
IMPLIB = $(TMPDIR)/lib$(1).dll.a
5152
STATICLIB = $(TMPDIR)/lib$(1).a
5253
STATICLIB_GLOB = lib$(1)*.a
5354
endif

0 commit comments

Comments
 (0)