mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
11 lines
223 B
Rust
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) { }
|