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