summaryrefslogtreecommitdiffstats
path: root/tests/run-make/pass-linker-flags-from-dep/rust_dep_attr.rs
blob: ac5888ce610b34c3d36ef1b6a2315fdd02cbf8bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![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();
    }
}