2023-06-08 02:18:34 -05:00
|
|
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
2023-09-20 16:43:33 -05:00
|
|
|
//@ unit-test: GVN
|
2019-12-05 01:40:24 -06:00
|
|
|
|
|
|
|
// This used to ICE in const-prop
|
|
|
|
|
|
|
|
fn test(this: ((u8, u8),)) {
|
|
|
|
assert!((this.0).0 == 1);
|
|
|
|
}
|
|
|
|
|
2023-09-20 16:43:33 -05:00
|
|
|
// EMIT_MIR issue_67019.main.GVN.diff
|
2019-12-05 01:40:24 -06:00
|
|
|
fn main() {
|
2023-12-02 14:38:07 -06:00
|
|
|
// CHECK-LABEL: fn main(
|
|
|
|
// CHECK: = test(const ((1_u8, 2_u8),))
|
2019-12-05 01:40:24 -06:00
|
|
|
test(((1, 2),));
|
|
|
|
}
|