summaryrefslogtreecommitdiffstats
path: root/tests/run-make/cdylib-dylib-linkage/foo.rs
blob: c4069495aaff1670d9084e004844024f095c56b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![crate_type = "cdylib"]

extern crate bar;

#[no_mangle]
pub extern "C" fn foo() {
    bar::bar();
}

#[no_mangle]
pub extern "C" fn bar(a: u32, b: u32) -> u32 {
    a + b
}