rust/tests/run-make/c-static-rlib/foo.rs

11 lines
135 B
Rust

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