rust/tests/run-make/wasm-builtins-import/main.rs
Felix S Klock II 665da1ed32
Update tests/run-make/wasm-builtins-import/main.rs
placate tidy (hopefully)
2023-10-17 11:31:30 -04:00

16 lines
413 B
Rust

#![crate_type = "cdylib"]
#![no_std]
#[panic_handler]
fn my_panic(_info: &core::panic::PanicInfo) -> ! {
loop {}
}
#[no_mangle]
pub fn multer(a: i128, b: i128) -> i128 {
// Trigger usage of the __multi3 compiler intrinsic which then leads to an imported function
// such as panic or __multi3 (externally defined) in case of a bug. We verify that
// no imports exist in our verifier.
a * b
}