mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00

- update existing tests for stabilization - ensure `-Clink-self-contained=-linker` is only stable on x64 linux - test invalid `-Clink-self-contained` components
14 lines
587 B
Rust
14 lines
587 B
Rust
// Checks that values for `-Clink-self-contained` other than the blanket enable/disable and
|
|
// `-linker` require `-Zunstable-options`.
|
|
|
|
//@ revisions: crto libc unwind sanitizers mingw
|
|
//@ [crto] compile-flags: -Clink-self-contained=+crto
|
|
//@ [libc] compile-flags: -Clink-self-contained=-libc
|
|
//@ [unwind] compile-flags: -Clink-self-contained=+unwind
|
|
//@ [sanitizers] compile-flags: -Clink-self-contained=-sanitizers
|
|
//@ [mingw] compile-flags: -Clink-self-contained=+mingw
|
|
|
|
fn main() {}
|
|
|
|
//~? ERROR only `-C link-self-contained` values `y`/`yes`/`on`/`n`/`no`/`off`/`-linker` are stable
|