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

extern crate foo;

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

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