summaryrefslogtreecommitdiffstats
path: root/tests/run-make/c-static-rlib/foo.rs
blob: 9c6d2080ef4d37c990b060efd425bfed41eb13c9 (plain)
1
2
3
4
5
6
7
8
9
10
#![crate_type = "rlib"]

#[link(name = "cfoo", kind = "static")]
extern "C" {
    fn foo();
}

pub fn rsfoo() {
    unsafe { foo() }
}