summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/const_prop/bad_op_div_by_zero.rs
blob: 38f1a993dc03af7c0746cb7b0cc692df5459f9c6 (plain)
1
2
3
4
5
6
7
8
// ignore-wasm32 compiled with panic=abort by default
// unit-test: ConstProp
// EMIT_MIR bad_op_div_by_zero.main.ConstProp.diff
#[allow(unconditional_panic)]
fn main() {
    let y = 0;
    let _z = 1 / y;
}