diff options
Diffstat (limited to 'tests/run-make/wasm-override-linker/foo.rs')
-rw-r--r-- | tests/run-make/wasm-override-linker/foo.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/run-make/wasm-override-linker/foo.rs b/tests/run-make/wasm-override-linker/foo.rs new file mode 100644 index 000000000..f4167a4fc --- /dev/null +++ b/tests/run-make/wasm-override-linker/foo.rs @@ -0,0 +1,6 @@ +#![crate_type = "cdylib"] + +#[no_mangle] +pub extern "C" fn add(a: i32, b: i32) -> i32 { + a + b +} |