mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
aa874c5513
This reverts commit8c2b577217
, reversing changes made to9cf18e98f8
.
15 lines
365 B
Rust
15 lines
365 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
|
|
// panic function in case of a bug. We verify that no imports exist in our verifier.
|
|
a * b
|
|
}
|