9 lines
208 B
Rust
9 lines
208 B
Rust
// unit-test: ConstProp
|
|
// 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;
|
|
}
|