rust/tests/run-make/c-dynamic-dylib/foo.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
119 B
Rust
Raw Normal View History

#![crate_type = "dylib"]
#[link(name = "cfoo")]
2020-09-01 21:12:52 +00:00
extern "C" {
fn foo();
}
pub fn rsfoo() {
unsafe { foo() }
}