about summary refs log tree commit diff
path: root/tests/mir-opt/const_prop/issue_67019.rs
blob: bf788b924ce199b841df4b9059a3730355449a3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
//@ unit-test: GVN

// This used to ICE in const-prop

fn test(this: ((u8, u8),)) {
    assert!((this.0).0 == 1);
}

// EMIT_MIR issue_67019.main.GVN.diff
fn main() {
    // CHECK-LABEL: fn main(
    // CHECK: = test(const ((1_u8, 2_u8),))
    test(((1, 2),));
}