rust/tests/run-make/interdependent-c-libraries/bar.rs

15 lines
165 B
Rust

#![crate_type = "rlib"]
extern crate foo;
#[link(name = "bar", kind = "static")]
extern "C" {
fn bar();
}
pub fn doit() {
unsafe {
bar();
}
}