Skip to content

Commit

Permalink
FileCheck issue_67019.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Dec 2, 2023
1 parent ce9b1e2 commit 8e9b912
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
let mut _3: (u8, u8);

bb0: {
StorageLive(_1);
StorageLive(_2);
StorageLive(_3);
- _3 = (const 1_u8, const 2_u8);
Expand All @@ -21,6 +22,8 @@

bb1: {
StorageDead(_2);
StorageDead(_1);
_0 = const ();
return;
}
+ }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
let mut _3: (u8, u8);

bb0: {
StorageLive(_1);
StorageLive(_2);
StorageLive(_3);
- _3 = (const 1_u8, const 2_u8);
Expand All @@ -21,6 +22,8 @@

bb1: {
StorageDead(_2);
StorageDead(_1);
_0 = const ();
return;
}
+ }
Expand Down
4 changes: 2 additions & 2 deletions tests/mir-opt/const_prop/issue_67019.rs
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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),));
}

0 comments on commit 8e9b912

Please sign in to comment.