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

13 lines
146 B
Rust

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