summary refs log tree commit diff
path: root/src/test/ui/native-library-link-flags/modifiers-override.rs
blob: f6d770559e6e03e8c6b9636c5aad66bfd908dd06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// compile-flags:-ldylib:+as-needed=foo -lstatic=bar -Zunstable-options

#![feature(native_link_modifiers_bundle)]

#[link(name = "foo")]
#[link( //~ ERROR multiple `modifiers` arguments in a single `#[link]` attribute
    name = "bar",
    kind = "static",
    modifiers = "+whole-archive,-whole-archive",
    //~^ ERROR same modifier is used multiple times in a single `modifiers` argument
    modifiers = "+bundle"
)]
extern "C" {}
//~^ ERROR overriding linking modifiers from command line is not supported
//~| ERROR overriding linking modifiers from command line is not supported

fn main() {}