summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/const_prop/return_place.rs
blob: 06a8536967919e1ac58406b32b66fb25f694f61c (plain)
1
2
3
4
5
6
7
8
9
10
11
// compile-flags: -C overflow-checks=on

// EMIT_MIR return_place.add.ConstProp.diff
// EMIT_MIR return_place.add.PreCodegen.before.mir
fn add() -> u32 {
    2 + 2
}

fn main() {
    add();
}