Skip to content

Commit

Permalink
FileCheck mutable_variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Dec 2, 2023
1 parent 902a3e2 commit ea9f968
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/mir-opt/const_prop/mutable_variable.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
// skip-filecheck
// unit-test: ConstProp

// EMIT_MIR mutable_variable.main.ConstProp.diff
fn main() {
// CHECK-LABEL: fn main(
// CHECK: debug x => [[x:_.*]];
// CHECK: debug y => [[y:_.*]];
// CHECK: [[x]] = const 42_i32;
// CHECK: [[x]] = const 99_i32;
// CHECK: [[y]] = const 99_i32;
let mut x = 42;
x = 99;
let y = x;
Expand Down

0 comments on commit ea9f968

Please sign in to comment.