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

extern "C" {
    fn bar();
}

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