]> git.lizzy.rs Git - rust.git/blob - src/test/run-make/wasm-spurious-import/main.rs
Merge commit '3c7e7dbc1583a0b06df5bd7623dd354a4debd23d' into clippyup
[rust.git] / src / test / run-make / wasm-spurious-import / main.rs
1 #![crate_type = "cdylib"]
2 #![no_std]
3
4 #[panic_handler]
5 fn my_panic(_info: &core::panic::PanicInfo) -> ! {
6     loop {}
7 }
8
9 #[no_mangle]
10 pub fn multer(a: i128, b: i128) -> i128 {
11     // Trigger usage of the __multi3 compiler intrinsic which then leads to an imported
12     // panic function in case of a bug. We verify that no imports exist in our verifier.
13     a * b
14 }