summaryrefslogtreecommitdiffstats
path: root/tests/run-make/native-link-modifier-bundle/non-bundled.rs
blob: 8181e6387c5c7ce18de9148d0757cb6ab0f7e7b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
#[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();
    }
}