summaryrefslogtreecommitdiffstats
path: root/tests/run-make/manual-crate-name
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/manual-crate-name')
-rw-r--r--tests/run-make/manual-crate-name/Makefile5
-rw-r--r--tests/run-make/manual-crate-name/bar.rs1
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/run-make/manual-crate-name/Makefile b/tests/run-make/manual-crate-name/Makefile
new file mode 100644
index 000000000..c00e20c7c
--- /dev/null
+++ b/tests/run-make/manual-crate-name/Makefile
@@ -0,0 +1,5 @@
+include ../tools.mk
+
+all:
+ $(RUSTC) --crate-name foo bar.rs
+ rm $(TMPDIR)/libfoo.rlib
diff --git a/tests/run-make/manual-crate-name/bar.rs b/tests/run-make/manual-crate-name/bar.rs
new file mode 100644
index 000000000..c1bfaa6ca
--- /dev/null
+++ b/tests/run-make/manual-crate-name/bar.rs
@@ -0,0 +1 @@
+#![crate_type = "rlib"]