summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/const_prop/return_place.rs
blob: ae119df8518ec881b96a265202f4c32283f0eb37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// ignore-wasm32 compiled with panic=abort by default
// 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();
}