]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/building/custom/consts.statics.built.after.mir
fix various subst_identity vs skip_binder
[rust.git] / tests / mir-opt / building / custom / consts.statics.built.after.mir
1 // MIR for `statics` after built
2
3 fn statics() -> () {
4     let mut _0: ();                      // return place in scope 0 at $DIR/consts.rs:+0:14: +0:14
5     let mut _1: &i32;                    // in scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
6     let mut _2: *mut i32;                // in scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
7
8     bb0: {
9         _1 = const {alloc1: &i32};       // scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
10                                          // mir::Constant
11                                          // + span: $DIR/consts.rs:27:31: 27:32
12                                          // + literal: Const { ty: &i32, val: Value(Scalar(alloc1)) }
13         _2 = const {alloc2: *mut i32};   // scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
14                                          // mir::Constant
15                                          // + span: $DIR/consts.rs:28:38: 28:39
16                                          // + literal: Const { ty: *mut i32, val: Value(Scalar(alloc2)) }
17         return;                          // scope 0 at $DIR/consts.rs:+4:9: +4:17
18     }
19 }
20
21 alloc2 (static: T, size: 4, align: 4) {
22     0a 00 00 00                                     │ ....
23 }
24
25 alloc1 (static: S, size: 4, align: 4) {
26     05 00 00 00                                     │ ....
27 }