Skip to content

Commit 3e169ab

Browse files
committed
FileCheck mutable_variable_aggregate_mut_ref.
1 parent 03c5ad1 commit 3e169ab

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/mir-opt/const_prop/mutable_variable_aggregate_mut_ref.rs

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

43
// EMIT_MIR mutable_variable_aggregate_mut_ref.main.ConstProp.diff
54
fn main() {
5+
// CHECK-LABEL: fn main(
6+
// CHECK: debug x => [[x:_.*]];
7+
// CHECK: debug z => [[z:_.*]];
8+
// CHECK: debug y => [[y:_.*]];
9+
// CHECK: [[x]] = (const 42_i32, const 43_i32);
10+
// CHECK: [[z]] = &mut [[x]];
11+
// CHECK: ((*[[z]]).1: i32) = const 99_i32;
12+
// CHECK: [[y]] = [[x]];
613
let mut x = (42, 43);
714
let z = &mut x;
815
z.1 = 99;

0 commit comments

Comments
 (0)