rust/tests/ui/linking/link-self-contained-consistency.rs
Rémy Rakic e32b1d7126 expand -Clink-self-contained tests
- update existing tests for stabilization
- ensure `-Clink-self-contained=-linker` is only stable on x64 linux
- test invalid `-Clink-self-contained` components
2025-07-08 10:24:10 +00:00

13 lines
603 B
Rust

// Checks that self-contained linking components cannot be both enabled and disabled at the same
// time on the CLI.
//@ revisions: one many
//@ [one] compile-flags: -Clink-self-contained=-linker -Clink-self-contained=+linker -Zunstable-options
//@ [many] compile-flags: -Clink-self-contained=+linker,+crto -Clink-self-contained=-linker,-crto -Zunstable-options
// ignore-tidy-linelength
fn main() {}
//[one]~? ERROR some `-C link-self-contained` components were both enabled and disabled: linker
//[many]~? ERROR some `-C link-self-contained` components were both enabled and disabled: crto, linker