Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ea9f968

Browse files
committedDec 2, 2023
FileCheck mutable_variable.
1 parent 902a3e2 commit ea9f968

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎tests/mir-opt/const_prop/mutable_variable.rs

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

43
// EMIT_MIR mutable_variable.main.ConstProp.diff
54
fn main() {
5+
// CHECK-LABEL: fn main(
6+
// CHECK: debug x => [[x:_.*]];
7+
// CHECK: debug y => [[y:_.*]];
8+
// CHECK: [[x]] = const 42_i32;
9+
// CHECK: [[x]] = const 99_i32;
10+
// CHECK: [[y]] = const 99_i32;
611
let mut x = 42;
712
x = 99;
813
let y = x;

0 commit comments

Comments
 (0)
Please sign in to comment.