about summary refs log tree commit diff
path: root/tests/run-make/compile-stdin/rmake.rs
blob: b8244335855c50958d406bfc8d5692a02ff816fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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_buf("fn main() {}").run();
    run("rust_out");
}