FileCheck issue_67019.

This commit is contained in:
Camille GILLOT 2023-12-02 20:38:07 +00:00
parent ce9b1e23a5
commit 8e9b912c4c
3 changed files with 8 additions and 2 deletions

View File

@ -8,6 +8,7 @@
let mut _3: (u8, u8);
bb0: {
StorageLive(_1);
StorageLive(_2);
StorageLive(_3);
- _3 = (const 1_u8, const 2_u8);
@ -21,6 +22,8 @@
bb1: {
StorageDead(_2);
StorageDead(_1);
_0 = const ();
return;
}
+ }

View File

@ -8,6 +8,7 @@
let mut _3: (u8, u8);
bb0: {
StorageLive(_1);
StorageLive(_2);
StorageLive(_3);
- _3 = (const 1_u8, const 2_u8);
@ -21,6 +22,8 @@
bb1: {
StorageDead(_2);
StorageDead(_1);
_0 = const ();
return;
}
+ }

View File

@ -1,7 +1,5 @@
// skip-filecheck
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: ConstProp
// compile-flags: -Z mir-opt-level=3
// This used to ICE in const-prop
@ -11,5 +9,7 @@ fn test(this: ((u8, u8),)) {
// EMIT_MIR issue_67019.main.ConstProp.diff
fn main() {
// CHECK-LABEL: fn main(
// CHECK: = test(const ((1_u8, 2_u8),))
test(((1, 2),));
}