about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorVictor Ding <victording@google.com>2020-12-23 12:17:45 +1100
committerVictor Ding <victording@google.com>2020-12-23 12:51:10 +1100
commite8a564edc0a0c19633039848c68d5f81fcfcc00d (patch)
tree33a909d4e16d86546eb506f3b6871c20c9b23f05 /src
parent732afd41cff1d562e03a6e1611ef7baf9d7f5962 (diff)
downloadrust-e8a564edc0a0c19633039848c68d5f81fcfcc00d.tar.gz
rust-e8a564edc0a0c19633039848c68d5f81fcfcc00d.zip
Add a test that rustc compiles and links separately
Diffstat (limited to 'src')
-rw-r--r--src/test/run-make-fulldeps/separate-link/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/run-make-fulldeps/separate-link/Makefile b/src/test/run-make-fulldeps/separate-link/Makefile
new file mode 100644
index 00000000000..060484e89f9
--- /dev/null
+++ b/src/test/run-make-fulldeps/separate-link/Makefile
@@ -0,0 +1,6 @@
+-include ../tools.mk
+
+all:
+	echo 'fn main(){}' | $(RUSTC) -Z no-link -
+	$(RUSTC) -Z link-only $(TMPDIR)/rust_out.rlink
+	$(call RUN,rust_out)