]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/const_prop/return_place.rs
Merge commit '1480cea393d0cee195e59949eabdfbcf1230f7f9' into clippyup
[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 }