]> git.lizzy.rs Git - rust.git/blob - src/test/run-make/wasm-spurious-import/main.rs
Rollup merge of #87631 - :solarish_upd_fs, r=joshtriplett
[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 }