2023-04-05 09:44:20 +01:00
|
|
|
// ignore-wasm32 compiled with panic=abort by default
|
2022-07-26 19:04:27 +02:00
|
|
|
// unit-test: ConstProp
|
2020-07-27 21:22:43 +02:00
|
|
|
// EMIT_MIR bad_op_div_by_zero.main.ConstProp.diff
|
2020-04-27 18:57:58 -04:00
|
|
|
#[allow(unconditional_panic)]
|
|
|
|
fn main() {
|
|
|
|
let y = 0;
|
|
|
|
let _z = 1 / y;
|
|
|
|
}
|