Update tests

This commit is contained in:
bjorn3 2022-01-15 15:43:02 +01:00
parent 1b0c0eb717
commit 0b5963023d
4 changed files with 2 additions and 14 deletions

View File

@ -1,6 +0,0 @@
-include ../tools.mk
all:
$(RUSTC) foo.rs
$(call RUN,foo)
rm $(TMPDIR)/$(call DYLIB_GLOB,foo)

View File

@ -1,4 +0,0 @@
#![crate_type = "dylib"]
#![crate_type = "bin"]
fn main() {}

View File

@ -1,6 +1,7 @@
-include ../tools.mk
all:
$(RUSTC) foo-bar.rs
$(RUSTC) foo-bar.rs --crate-type bin
[ -f $(TMPDIR)/$(call BIN,foo-bar) ]
$(RUSTC) foo-bar.rs --crate-type lib
[ -f $(TMPDIR)/libfoo_bar.rlib ]

View File

@ -1,4 +1 @@
#![crate_type = "lib"]
#![crate_type = "bin"]
fn main() {}