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 902a3e2 commit ea9f968Copy full SHA for ea9f968
tests/mir-opt/const_prop/mutable_variable.rs
@@ -1,8 +1,13 @@
1
-// skip-filecheck
2
// unit-test: ConstProp
3
4
// EMIT_MIR mutable_variable.main.ConstProp.diff
5
fn main() {
+ // 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;
11
let mut x = 42;
12
x = 99;
13
let y = x;
0 commit comments