rust/tests/mir-opt/const_prop/bad_op_mod_by_zero.rs
2023-04-06 10:08:07 +01:00

8 lines
184 B
Rust

// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR bad_op_mod_by_zero.main.ConstProp.diff
#[allow(unconditional_panic)]
fn main() {
let y = 0;
let _z = 1 % y;
}