rust/tests/run-make/staticlib-dylib-linkage/foo.rs

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

14 lines
179 B
Rust
Raw Normal View History

#![crate_type = "staticlib"]
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
}