rust/tests/run-make-fulldeps/cdylib/foo.rs
2023-01-11 09:32:08 +00:00

14 lines
176 B
Rust

#![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
}