]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_prop/return_place.rs
Rollup merge of #98387 - NobodyXu:feature/std_io_Error_try_downgrade_inner, r=yaahc
[rust.git] / src / test / mir-opt / const_prop / return_place.rs
1 // compile-flags: -C overflow-checks=on
2
3 // EMIT_MIR return_place.add.ConstProp.diff
4 // EMIT_MIR return_place.add.PreCodegen.before.mir
5 fn add() -> u32 {
6     2 + 2
7 }
8
9 fn main() {
10     add();
11 }