rust/tests/run-make/pass-linker-flags-from-dep/rust_dep_attr.rs

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

15 lines
305 B
Rust
Raw Normal View History

#![feature(link_arg_attribute)]
#[link(kind = "static", name = "native_dep_1", modifiers = "-bundle")]
#[link(kind = "link-arg", name = "some_flag")]
#[link(kind = "static", name = "native_dep_2", modifiers = "-bundle")]
extern "C" {
pub fn foo();
}
pub fn f() {
unsafe {
foo();
}
}