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

9 lines
204 B
Rust

// ignore-wasm32 compiled with panic=abort by default
// unit-test: ConstProp
// compile-flags: -C overflow-checks=on
// EMIT_MIR indirect.main.ConstProp.diff
fn main() {
let x = (2u32 as u8) + 1;
}