mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-08 21:13:55 +00:00
FileCheck issue_67019.
This commit is contained in:
parent
ce9b1e23a5
commit
8e9b912c4c
@ -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;
|
||||
}
|
||||
+ }
|
||||
|
@ -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;
|
||||
}
|
||||
+ }
|
||||
|
@ -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),));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user