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

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

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