rust/tests/mir-opt/const_prop/scalar_literal_propagation.rs
2023-05-02 16:46:56 +00:00

11 lines
223 B
Rust

// 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) { }