mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
14 lines
285 B
Rust
14 lines
285 B
Rust
//@ test-mir-pass: 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)) { }
|