summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-1717-dllimport/rename-modifiers.rs
blob: 30f4db7180eced7a44d2af43a6c67693dffe3ea1 (plain)
1
2
3
4
5
6
7
8
9
// compile-flags: -l dylib=foo:bar
// error-pattern: overriding linking modifiers from command line is not supported

#![feature(native_link_modifiers_as_needed)]

#![crate_type = "lib"]

#[link(name = "foo", kind = "dylib", modifiers = "-as-needed")]
extern "C" {}