rust/tests/ui/rfcs/rfc-1717-dllimport/rename-modifiers.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
266 B
Rust
Raw Normal View History

// 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" {}