summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/const_prop/indirect.rs
blob: 46fd8082d308ca0f8ed6c7f14d9c069a58009582 (plain)
1
2
3
4
5
6
7
8
// 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;
}