summaryrefslogtreecommitdiffstats
path: root/tests/run-make/extra-filename-with-temp-outputs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/extra-filename-with-temp-outputs')
-rw-r--r--tests/run-make/extra-filename-with-temp-outputs/Makefile7
-rw-r--r--tests/run-make/extra-filename-with-temp-outputs/foo.rs1
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/run-make/extra-filename-with-temp-outputs/Makefile b/tests/run-make/extra-filename-with-temp-outputs/Makefile
new file mode 100644
index 000000000..64745bef5
--- /dev/null
+++ b/tests/run-make/extra-filename-with-temp-outputs/Makefile
@@ -0,0 +1,7 @@
+# ignore-cross-compile
+include ../tools.mk
+
+all:
+ $(RUSTC) -C extra-filename=bar foo.rs -C save-temps
+ rm $(TMPDIR)/foobar.foo*0.rcgu.o
+ rm $(TMPDIR)/$(call BIN,foobar)
diff --git a/tests/run-make/extra-filename-with-temp-outputs/foo.rs b/tests/run-make/extra-filename-with-temp-outputs/foo.rs
new file mode 100644
index 000000000..f328e4d9d
--- /dev/null
+++ b/tests/run-make/extra-filename-with-temp-outputs/foo.rs
@@ -0,0 +1 @@
+fn main() {}