summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/const_prop/indirect.rs
blob: 44916cbfe743a8781e22e8d35bca33639719ba9a (plain)
1
2
3
4
5
6
7
// unit-test: ConstProp
// compile-flags: -C overflow-checks=on

// EMIT_MIR indirect.main.ConstProp.diff
fn main() {
    let x = (2u32 as u8) + 1;
}