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

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

11 lines
118 B
Rust
Raw Permalink Normal View History

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