about summary refs log tree commit diff
path: root/tests/ui/link-native-libs/modifiers-override.rs
blob: a44b7d37ed8100b70099530179ac6ed415d22ca9 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ compile-flags:-ldylib:+as-needed=foo -lstatic=bar -Zunstable-options

#[link(name = "foo")]
#[link(
    name = "bar",
    kind = "static",
)]
extern "C" {}
//~^ ERROR overriding linking modifiers from command line is not supported

fn main() {}