summary refs log tree commit diff
path: root/src/test/mir-opt/const_prop/aggregate.rs
blob: 0937d37be6b6e083c5bb89e26df8518d49891bca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// compile-flags: -O

fn main() {
    let x = (0, 1, 2).1 + 0;
}

// END RUST SOURCE
// START rustc.main.ConstProp.before.mir
//  bb0: {
//      ...
//      _3 = (const 0i32, const 1i32, const 2i32);
//      _2 = (_3.1: i32);
//      _1 = Add(move _2, const 0i32);
//      ...
//  }
// END rustc.main.ConstProp.before.mir
// START rustc.main.ConstProp.after.mir
//  bb0: {
//      ...
//      _3 = (const 0i32, const 1i32, const 2i32);
//      _2 = const 1i32;
//      _1 = Add(move _2, const 0i32);
//      ...
//  }
// END rustc.main.ConstProp.after.mir