rust/tests/run-make/compile-stdin/rmake.rs
许杰友 Jieyou Xu (Joe) afed862b26 tests: use renamed stdin_buf
2024-09-05 08:43:38 +00:00

14 lines
371 B
Rust

// 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_buf("fn main() {}").run();
run("rust_out");
}