2024-06-17 14:14:21 -05:00
|
|
|
// The compiler flags no-link (and by extension, link-only) used to be broken
|
2024-06-17 15:11:14 -05:00
|
|
|
// due to changes in encoding/decoding. This was patched, and this test checks
|
2024-06-17 14:14:21 -05:00
|
|
|
// that these flags are not broken again, resulting in successful compilation.
|
|
|
|
// See https://github.com/rust-lang/rust/issues/77857
|
|
|
|
|
|
|
|
//@ ignore-cross-compile
|
|
|
|
|
|
|
|
use run_make_support::{run, rustc};
|
|
|
|
|
|
|
|
fn main() {
|
2024-09-04 19:02:32 -05:00
|
|
|
rustc().stdin_buf(b"fn main(){}").arg("-Zno-link").arg("-").run();
|
2024-06-17 14:14:21 -05:00
|
|
|
rustc().arg("-Zlink-only").input("rust_out.rlink").run();
|
|
|
|
run("rust_out");
|
|
|
|
}
|