summaryrefslogtreecommitdiffstats
path: root/tests/run-make/link-cfg/dep-with-staticlib.rs
blob: 5ad66475d003ff3aab72a63392daf5d8e84fb81a (plain)
1
2
3
4
5
6
7
8
#![feature(link_cfg)]
#![crate_type = "rlib"]

#[link(name = "return1", cfg(foo))]
#[link(name = "return3", kind = "static", cfg(bar))]
extern "C" {
    pub fn my_function() -> i32;
}