summary refs log tree commit diff
path: root/src/test/mir-opt/const_prop/checked_add.rs
blob: 439bd2df91f574397476eef4bdedb04bffa997cd (plain)
1
2
3
4
5
6
// compile-flags: -C overflow-checks=on

// EMIT_MIR rustc.main.ConstProp.diff
fn main() {
    let x: u32 = 1 + 1;
}