rust/tests/run-make/raw-dylib-inline-cross-dylib/lib.rs

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

20 lines
288 B
Rust
Raw Normal View History

#[link(name = "extern_1", kind = "raw-dylib")]
extern {
fn extern_fn_1();
fn extern_fn_2();
}
#[inline]
pub fn inline_library_function() {
unsafe {
extern_fn_1();
extern_fn_2();
}
}
pub fn library_function() {
unsafe {
extern_fn_2();
}
}