]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/const_prop/checked_add.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / mir-opt / const_prop / checked_add.rs
1 // unit-test: ConstProp
2 // compile-flags: -C overflow-checks=on
3
4 // EMIT_MIR checked_add.main.ConstProp.diff
5 fn main() {
6     let x: u32 = 1 + 1;
7 }