]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_prop/ref_deref.rs
[const-prop] Handle ProjectionElem::Deref
[rust.git] / src / test / mir-opt / const_prop / ref_deref.rs
1 fn main() {
2     *(&4);
3 }
4
5 // END RUST SOURCE
6 // START rustc.main.ConstProp.before.mir
7 // bb0: {
8 //     ...
9 //     _2 = &(promoted[0]: i32);
10 //     _1 = (*_2);
11 //     ...
12 //}
13 // END rustc.main.ConstProp.before.mir
14 // START rustc.main.ConstProp.after.mir
15 // bb0: {
16 //     ...
17 //     _2 = const Scalar(AllocId(0).0x0) : &i32;
18 //     _1 = const 4i32;
19 //     ...
20 // }
21 // END rustc.main.ConstProp.after.mir