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

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

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