]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/const_prop/return_place.rs
Auto merge of #107000 - GuillaumeGomez:fix-items-in-doc-hidden-block, r=notriddle...
[rust.git] / tests / 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 }