diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-05-27 11:37:27 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-05-27 11:37:27 +0200 |
| commit | e4abfaeb620e75a1f84b94dcb89e41eac495f52b (patch) | |
| tree | 8fca8eecbce8f8da3273c3d7d97458920b7adbd1 /tests/run-make/compile-stdin | |
| parent | 21e6de7eb64c09102de3f100420a09edc1a2a8d7 (diff) | |
| download | rust-e4abfaeb620e75a1f84b94dcb89e41eac495f52b.tar.gz rust-e4abfaeb620e75a1f84b94dcb89e41eac495f52b.zip | |
Migrate `run-make/compile-stdin` to `rmake.rs`
Diffstat (limited to 'tests/run-make/compile-stdin')
| -rw-r--r-- | tests/run-make/compile-stdin/Makefile | 9 | ||||
| -rw-r--r-- | tests/run-make/compile-stdin/rmake.rs | 13 |
2 files changed, 13 insertions, 9 deletions
diff --git a/tests/run-make/compile-stdin/Makefile b/tests/run-make/compile-stdin/Makefile deleted file mode 100644 index b3d7cc777a0..00000000000 --- a/tests/run-make/compile-stdin/Makefile +++ /dev/null @@ -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) diff --git a/tests/run-make/compile-stdin/rmake.rs b/tests/run-make/compile-stdin/rmake.rs new file mode 100644 index 00000000000..f93080dfdc4 --- /dev/null +++ b/tests/run-make/compile-stdin/rmake.rs @@ -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"); +} |
