summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/building/custom/consts.statics.built.after.mir
blob: ea394c5b7276d014e849de3bc1fd0120b522df3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// MIR for `statics` after built

fn statics() -> () {
    let mut _0: ();
    let mut _1: &i32;
    let mut _2: *mut i32;

    bb0: {
        _1 = const {alloc1: &i32};
        _2 = const {alloc2: *mut i32};
        return;
    }
}

alloc2 (static: T, size: 4, align: 4) {
    0a 0a 0a 0a                                     │ ....
}

alloc1 (static: S, size: 4, align: 4) {
    05 05 05 05                                     │ ....
}