mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
Migrate run-make/compile-stdin
to rmake.rs
This commit is contained in:
parent
21e6de7eb6
commit
e4abfaeb62
@ -18,7 +18,6 @@ run-make/cdylib-fewer-symbols/Makefile
|
|||||||
run-make/cdylib/Makefile
|
run-make/cdylib/Makefile
|
||||||
run-make/codegen-options-parsing/Makefile
|
run-make/codegen-options-parsing/Makefile
|
||||||
run-make/comment-section/Makefile
|
run-make/comment-section/Makefile
|
||||||
run-make/compile-stdin/Makefile
|
|
||||||
run-make/compiler-lookup-paths-2/Makefile
|
run-make/compiler-lookup-paths-2/Makefile
|
||||||
run-make/compiler-lookup-paths/Makefile
|
run-make/compiler-lookup-paths/Makefile
|
||||||
run-make/compiler-rt-works-on-mingw/Makefile
|
run-make/compiler-rt-works-on-mingw/Makefile
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
# When provided standard input piped directly into rustc, this test checks that the compilation completes successfully and that the output can be executed.
|
|
||||||
# See https://github.com/rust-lang/rust/pull/28805
|
|
||||||
|
|
||||||
# ignore-cross-compile
|
|
||||||
include ../tools.mk
|
|
||||||
|
|
||||||
all:
|
|
||||||
echo 'fn main(){}' | $(RUSTC) -
|
|
||||||
$(call RUN,rust_out)
|
|
13
tests/run-make/compile-stdin/rmake.rs
Normal file
13
tests/run-make/compile-stdin/rmake.rs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
// When provided standard input piped directly into rustc, this test checks that the compilation
|
||||||
|
// completes successfully and that the output can be executed.
|
||||||
|
//
|
||||||
|
// See <https://github.com/rust-lang/rust/pull/28805>.
|
||||||
|
|
||||||
|
//@ ignore-cross-compile
|
||||||
|
|
||||||
|
use run_make_support::{run, rustc};
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
rustc().arg("-").stdin("fn main() {}").run();
|
||||||
|
run("rust_out");
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user