FileCheck mutable_variable. · rust-lang/rust@ea9f968 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit ea9f968
FileCheck mutable_variable.
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
1 | -// skip-filecheck | |
2 | 1 | // unit-test: ConstProp |
3 | 2 | |
4 | 3 | // EMIT_MIR mutable_variable.main.ConstProp.diff |
5 | 4 | 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; | |
6 | 11 | let mut x = 42; |
7 | 12 | x = 99; |
8 | 13 | let y = x; |