FileCheck mutable_variable_aggregate. · rust-lang/rust@03c5ad1 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 03c5ad1

FileCheck mutable_variable_aggregate.

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_aggregate.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, 43_i32);
9 +// CHECK: ([[x]].1: i32) = const 99_i32;
10 +// CHECK: [[y]] = const (42_i32, 99_i32);
6 11 let mut x = (42, 43);
7 12 x.1 = 99;
8 13 let y = x;