about summary refs log tree commit diff
path: root/tests/run-make/separate-link/rmake.rs
blob: 0ec7334e75de75a3489e4c964fc94f8961fc27b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// The compiler flags no-link (and by extension, link-only) used to be broken
// due to changes in encoding/decoding. This was patched, and this test checks
// 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() {
    rustc().stdin_buf(b"fn main(){}").arg("-Zno-link").arg("-").run();
    rustc().arg("-Zlink-only").input("rust_out.rlink").run();
    run("rust_out");
}