2022-02-11 07:08:35 +00:00
|
|
|
//@ compile-flags:-ldylib:+as-needed=foo -lstatic=bar -Zunstable-options
|
|
|
|
|
|
|
|
#[link(name = "foo")]
|
2022-03-14 10:28:34 +00:00
|
|
|
#[link(
|
2022-02-11 07:08:35 +00:00
|
|
|
name = "bar",
|
|
|
|
kind = "static",
|
|
|
|
modifiers = "+whole-archive,-whole-archive",
|
2022-03-14 10:28:34 +00:00
|
|
|
//~^ ERROR multiple `whole-archive` modifiers in a single `modifiers` argument
|
2022-02-11 07:08:35 +00:00
|
|
|
modifiers = "+bundle"
|
2022-03-14 10:28:34 +00:00
|
|
|
//~^ ERROR multiple `modifiers` arguments in a single `#[link]` attribute
|
2022-02-11 07:08:35 +00: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() {}
|