12 lines
223 B
Rust
12 lines
223 B
Rust
// skip-filecheck
|
|
// unit-test: ConstProp
|
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
|
// EMIT_MIR scalar_literal_propagation.main.ConstProp.diff
|
|
fn main() {
|
|
let x = 1;
|
|
consume(x);
|
|
}
|
|
|
|
#[inline(never)]
|
|
fn consume(_: u32) { }
|