We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03c5ad1 commit 3e169abCopy full SHA for 3e169ab
tests/mir-opt/const_prop/mutable_variable_aggregate_mut_ref.rs
@@ -1,8 +1,15 @@
1
-// skip-filecheck
2
// unit-test: ConstProp
3
4
// EMIT_MIR mutable_variable_aggregate_mut_ref.main.ConstProp.diff
5
fn main() {
+ // 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]];
13
let mut x = (42, 43);
14
let z = &mut x;
15
z.1 = 99;
0 commit comments