mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
22 lines
312 B
Rust
22 lines
312 B
Rust
#![feature(raw_dylib)]
|
|
|
|
#[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();
|
|
}
|
|
}
|