2024-04-20 06:19:34 -05:00
|
|
|
//@ test-mir-pass: GVN
|
2024-06-14 18:01:26 -05:00
|
|
|
//@ compile-flags: -Zdump-mir-exclude-alloc-bytes
|
2023-06-08 02:18:34 -05:00
|
|
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
2023-09-20 16:43:33 -05:00
|
|
|
// EMIT_MIR tuple_literal_propagation.main.GVN.diff
|
2023-12-02 15:08:55 -06:00
|
|
|
|
2020-04-22 20:39:47 -05:00
|
|
|
fn main() {
|
2023-12-02 15:08:55 -06:00
|
|
|
// CHECK-LABEL: fn main(
|
|
|
|
// CHECK: = consume(const (1_u32, 2_u32))
|
2020-04-22 20:39:47 -05:00
|
|
|
let x = (1, 2);
|
|
|
|
consume(x);
|
|
|
|
}
|
|
|
|
|
|
|
|
#[inline(never)]
|
2024-06-02 19:18:33 -05:00
|
|
|
fn consume(_: (u32, u32)) {}
|