Rollup merge of #125607 - GuillaumeGomez:migrate-compile-stdin, r=jie… · rust-lang/rust@7083131

File tree

3 files changed

lines changed

  • tests/run-make/compile-stdin

3 files changed

lines changed

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

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+

}