2023-09-21 13:29:04 +00:00
|
|
|
// 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() {}
|
2025-03-23 15:50:51 +03:00
|
|
|
|
|
|
|
|
//[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
|