rust/tests/mir-opt/const_prop/tuple_literal_propagation.rs
2023-12-24 20:08:57 +00:00

14 lines
280 B
Rust

// unit-test: GVN
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// EMIT_MIR tuple_literal_propagation.main.GVN.diff
fn main() {
// CHECK-LABEL: fn main(
// CHECK: = consume(const (1_u32, 2_u32))
let x = (1, 2);
consume(x);
}
#[inline(never)]
fn consume(_: (u32, u32)) { }