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

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