Skip to content

Commit e4abfae

Browse files
Migrate run-make/compile-stdin to rmake.rs
1 parent 21e6de7 commit e4abfae

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ run-make/cdylib-fewer-symbols/Makefile
1818
run-make/cdylib/Makefile
1919
run-make/codegen-options-parsing/Makefile
2020
run-make/comment-section/Makefile
21-
run-make/compile-stdin/Makefile
2221
run-make/compiler-lookup-paths-2/Makefile
2322
run-make/compiler-lookup-paths/Makefile
2423
run-make/compiler-rt-works-on-mingw/Makefile

tests/run-make/compile-stdin/Makefile

-9
This file was deleted.

tests/run-make/compile-stdin/rmake.rs

+13
Original file line numberDiff line numberDiff 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+
}

0 commit comments

Comments
 (0)