]> git.lizzy.rs Git - rust.git/blob - src/test/ui/native-library-link-flags/modifiers-override.rs
Rollup merge of #98640 - cuviper:stable-rust-analyzer, r=Mark-Simulacrum
[rust.git] / src / test / ui / native-library-link-flags / modifiers-override.rs
1 // compile-flags:-ldylib:+as-needed=foo -lstatic=bar -Zunstable-options
2
3 #[link(name = "foo")]
4 #[link(
5     name = "bar",
6     kind = "static",
7     modifiers = "+whole-archive,-whole-archive",
8     //~^ ERROR multiple `whole-archive` modifiers in a single `modifiers` argument
9     modifiers = "+bundle"
10     //~^ ERROR multiple `modifiers` arguments in a single `#[link]` attribute
11 )]
12 extern "C" {}
13 //~^ ERROR overriding linking modifiers from command line is not supported
14 //~| ERROR overriding linking modifiers from command line is not supported
15
16 fn main() {}