summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/const_prop/scalar_literal_propagation.rs
blob: fc33cc2d021f1ef8041326a338c85f36678101b9 (plain)
1
2
3
4
5
6
7
8
9
10
// unit-test: ConstProp
// ignore-wasm32 compiled with panic=abort by default
// EMIT_MIR scalar_literal_propagation.main.ConstProp.diff
fn main() {
    let x = 1;
    consume(x);
}

#[inline(never)]
fn consume(_: u32) { }