rust/tests/run-make/native-link-modifier-bundle/bundled.rs

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

12 lines
209 B
Rust
Raw Normal View History

#[link(name = "native-staticlib", kind = "static", modifiers = "+bundle")]
extern "C" {
pub fn native_func();
}
#[no_mangle]
pub extern "C" fn wrapped_func() {
unsafe {
native_func();
}
}