summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/building/custom/arrays.arrays.built.after.mir
blob: 4c9212728859667b11e4ecb3ff2e0bf7b01051c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// MIR for `arrays` after built

fn arrays() -> usize {
    let mut _0: usize;                   // return place in scope 0 at $DIR/arrays.rs:+0:32: +0:37
    let mut _1: [i32; C];                // in scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
    let mut _2: usize;                   // in scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL

    bb0: {
        _1 = [const 5_i32; C];           // scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
        _2 = Len(_1);                    // scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL
        _0 = _2;                         // scope 0 at $DIR/arrays.rs:+4:9: +4:16
        return;                          // scope 0 at $DIR/arrays.rs:+5:9: +5:17
    }
}