rust/tests/run-make/pass-linker-flags-flavor/attribute.rs

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

13 lines
428 B
Rust
Raw Normal View History

#![feature(link_arg_attribute)]
#[link(kind = "static", name = "l1")]
#[cfg_attr(feature = "verbatim", link(kind = "link-arg", name = "a1", modifiers = "+verbatim"))]
#[cfg_attr(not(feature = "verbatim"), link(kind = "link-arg", name = "a1"))]
#[link(kind = "static", name = "l2")]
#[link(kind = "link-arg", name = "a2")]
#[link(kind = "dylib", name = "d1")]
#[link(kind = "link-arg", name = "a3")]
extern "C" {}
fn main() {}