Rollup merge of #125607 - GuillaumeGomez:migrate-compile-stdin, r=jie… · rust-lang/rust@7083131 (original) (raw)

File tree

3 files changed

lines changed

3 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -18,7 +18,6 @@ run-make/cdylib-fewer-symbols/Makefile
18 18 run-make/cdylib/Makefile
19 19 run-make/codegen-options-parsing/Makefile
20 20 run-make/comment-section/Makefile
21 -run-make/compile-stdin/Makefile
22 21 run-make/compiler-lookup-paths-2/Makefile
23 22 run-make/compiler-lookup-paths/Makefile
24 23 run-make/compiler-rt-works-on-mingw/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
1 +// When provided standard input piped directly into rustc, this test checks that the compilation
2 +// completes successfully and that the output can be executed.
3 +//
4 +// See https://github.com/rust-lang/rust/pull/28805.
5 +
6 +//@ ignore-cross-compile
7 +
8 +use run_make_support::{run, rustc};
9 +
10 +fn main() {
11 +rustc().arg("-").stdin("fn main() {}").run();
12 +run("rust_out");
13 +}