mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
f4c4f96d16
The purpose of the test is to make sure that compiling hello world produces no compiler output. To properly test that, we need to run the entire compiler pipeline. We don't want the test to pass if codegen accidentally starts writing to stdout. So keep it as build-pass.
8 lines
133 B
Rust
8 lines
133 B
Rust
// build-pass
|
|
|
|
// Test that compiling hello world succeeds with no output of any kind.
|
|
|
|
fn main() {
|
|
println!("Hello, world!");
|
|
}
|