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

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

pub fn doit() {
    unsafe {
        foo();
    }
}