1 # Test the behavior of #[link(.., kind = "raw-dylib")] with alternative calling conventions.
3 # only-i686-pc-windows-msvc
5 -include ../../run-make-fulldeps/tools.mk
8 $(call COMPILE_OBJ,"$(TMPDIR)"/extern.obj,extern.c)
9 $(CC) "$(TMPDIR)"/extern.obj -link -dll -out:"$(TMPDIR)"/extern.dll
10 $(RUSTC) --crate-type lib --crate-name raw_dylib_alt_calling_convention_test lib.rs
11 $(RUSTC) --crate-type bin driver.rs -L "$(TMPDIR)"
12 "$(TMPDIR)"/driver > "$(TMPDIR)"/output.txt
14 ifdef RUSTC_BLESS_TEST
15 cp "$(TMPDIR)"/output.txt output.txt
17 $(DIFF) output.txt "$(TMPDIR)"/output.txt