rust/tests/run-make/c-dynamic-dylib/foo.rs
2023-03-30 07:34:55 -05:00

11 lines
119 B
Rust

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