about summary refs log tree commit diff
path: root/tests/run-make/wasm-override-linker/foo.rs
blob: f4167a4fc4af7e3e45e416ca503742bd5504abb2 (plain)
1
2
3
4
5
6
#![crate_type = "cdylib"]

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