rust/tests/mir-opt/const_prop/issue_67019.rs

16 lines
298 B
Rust
Raw Normal View History

// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
2023-09-20 21:43:33 +00:00
// unit-test: GVN
// This used to ICE in const-prop
fn test(this: ((u8, u8),)) {
assert!((this.0).0 == 1);
}
2023-09-20 21:43:33 +00:00
// EMIT_MIR issue_67019.main.GVN.diff
fn main() {
2023-12-02 20:38:07 +00:00
// CHECK-LABEL: fn main(
// CHECK: = test(const ((1_u8, 2_u8),))
test(((1, 2),));
}