summaryrefslogtreecommitdiffstats
path: root/tests/run-make/raw-dylib-inline-cross-dylib/lib.rs
blob: 4877cb80aea5e0f5052829f9b85a1ff8a90f9273 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#[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();
    }
}