mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
17 lines
560 B
Rust
17 lines
560 B
Rust
//@ compile-flags:-ldylib:+as-needed=foo -lstatic=bar -Zunstable-options
|
|
|
|
#[link(name = "foo")]
|
|
#[link(
|
|
name = "bar",
|
|
kind = "static",
|
|
modifiers = "+whole-archive,-whole-archive",
|
|
//~^ ERROR multiple `whole-archive` modifiers in a single `modifiers` argument
|
|
modifiers = "+bundle"
|
|
//~^ ERROR multiple `modifiers` arguments in a single `#[link]` attribute
|
|
)]
|
|
extern "C" {}
|
|
//~^ ERROR overriding linking modifiers from command line is not supported
|
|
//~| ERROR overriding linking modifiers from command line is not supported
|
|
|
|
fn main() {}
|