about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorWilliam Throwe <wtt6@cornell.edu>2015-10-01 23:25:48 -0400
committerWilliam Throwe <wtt6@cornell.edu>2015-10-01 23:28:01 -0400
commit8a4bfbb1c60a72a70b93f520bab0be6aabb3f132 (patch)
tree6ca3e00e38604765c62a9cf149792edd430bcdef /src/test
parent54f7b1d455915794ab000448799c5092c57535c1 (diff)
downloadrust-8a4bfbb1c60a72a70b93f520bab0be6aabb3f132.tar.gz
rust-8a4bfbb1c60a72a70b93f520bab0be6aabb3f132.zip
Add a test that rustc can compile standard input
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-make/compile-stdin/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/run-make/compile-stdin/Makefile b/src/test/run-make/compile-stdin/Makefile
new file mode 100644
index 00000000000..1442224cf9a
--- /dev/null
+++ b/src/test/run-make/compile-stdin/Makefile
@@ -0,0 +1,5 @@
+-include ../tools.mk
+
+all:
+	echo 'fn main(){}' | $(RUSTC) -
+	$(call RUN,rust_out)