summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/const_prop/return_place.rs
blob: 0576b02a845626ec7a53264f4e575c7fe08322ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// unit-test: ConstProp
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// 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();
}