Skip to content

Commit 6a8eea8

Browse files
committed
FileCheck mutable_variable_aggregate_partial_read.
1 parent d91bb50 commit 6a8eea8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/mir-opt/const_prop/mutable_variable_aggregate_partial_read.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
// skip-filecheck
21
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
32
// unit-test: ConstProp
43

54
// EMIT_MIR mutable_variable_aggregate_partial_read.main.ConstProp.diff
65
fn main() {
6+
// CHECK-LABEL: fn main(
7+
// CHECK: debug x => [[x:_.*]];
8+
// CHECK: debug y => [[y:_.*]];
9+
// CHECK: [[x]] = foo()
10+
// CHECK: ([[x]].1: i32) = const 99_i32;
11+
// CHECK: ([[x]].0: i32) = const 42_i32;
12+
// CHECK: [[y]] = const 99_i32;
713
let mut x: (i32, i32) = foo();
814
x.1 = 99;
915
x.0 = 42;

0 commit comments

Comments
 (0)