2022-02-11 01:08:35 -06:00
|
|
|
// compile-flags:-ldylib:+as-needed=foo -lstatic=bar -Zunstable-options
|
|
|
|
|
|
|
|
#[link(name = "foo")]
|
2022-03-14 05:28:34 -05:00
|
|
|
#[link(
|
2022-02-11 01:08:35 -06:00
|
|
|
name = "bar",
|
|
|
|
kind = "static",
|
|
|
|
modifiers = "+whole-archive,-whole-archive",
|
2022-03-14 05:28:34 -05:00
|
|
|
//~^ ERROR multiple `whole-archive` modifiers in a single `modifiers` argument
|
2022-02-11 01:08:35 -06:00
|
|
|
modifiers = "+bundle"
|
2022-03-14 05:28:34 -05:00
|
|
|
//~^ ERROR multiple `modifiers` arguments in a single `#[link]` attribute
|
2022-02-11 01:08:35 -06:00
|
|
|
)]
|
|
|
|
extern "C" {}
|
|
|
|
//~^ ERROR overriding linking modifiers from command line is not supported
|
|
|
|
//~| ERROR overriding linking modifiers from command line is not supported
|
|
|
|
|
|
|
|
fn main() {}
|