rust/tests/mir-opt/const_prop/indirect.rs
2023-06-12 09:34:15 +02:00

9 lines
186 B
Rust

// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: ConstProp
// compile-flags: -C overflow-checks=on
// EMIT_MIR indirect.main.ConstProp.diff
fn main() {
let x = (2u32 as u8) + 1;
}