rust/tests/mir-opt/building/custom/consts.statics.built.after.mir

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
1.3 KiB
Rust
Raw Normal View History

2022-11-27 21:25:55 -06:00
// MIR for `statics` after built
fn statics() -> () {
2022-11-27 23:23:39 -06:00
let mut _0: (); // return place in scope 0 at $DIR/consts.rs:+0:14: +0:14
2022-11-27 21:25:55 -06:00
let mut _1: &i32; // in scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
let mut _2: *mut i32; // in scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
bb0: {
2022-11-27 23:23:39 -06:00
_1 = const {alloc1: &i32}; // scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
2022-11-27 21:25:55 -06:00
// mir::Constant
// + span: $DIR/consts.rs:27:31: 27:32
// + literal: Const { ty: &i32, val: Value(Scalar(alloc1)) }
2022-11-27 23:23:39 -06:00
_2 = const {alloc2: *mut i32}; // scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
2022-11-27 21:25:55 -06:00
// mir::Constant
// + span: $DIR/consts.rs:28:38: 28:39
// + literal: Const { ty: *mut i32, val: Value(Scalar(alloc2)) }
2022-11-27 23:23:39 -06:00
return; // scope 0 at $DIR/consts.rs:+4:9: +4:17
2022-11-27 21:25:55 -06:00
}
}
alloc2 (static: T, size: 4, align: 4) {
0a 0a 0a 0a ....
2022-11-27 21:25:55 -06:00
}
alloc1 (static: S, size: 4, align: 4) {
05 05 05 05 ....
2022-11-27 21:25:55 -06:00
}