about summary refs log tree commit diff
path: root/tests/mir-opt/building/custom/aggregate_exprs.adt.built.after.mir
blob: 6d4d261b895a3ba0876634820805bed1578975a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// MIR for `adt` after built

fn adt() -> Onion {
    let mut _0: Onion;
    let mut _1: i32;
    let mut _2: Foo;
    let mut _3: Bar;

    bb0: {
        _1 = const 1_i32;
        _2 = Foo { a: const 1_i32, b: const 2_i32 };
        _3 = Bar::Foo(move _2, copy _1);
        _0 = Onion { neon: copy ((_3 as variant#0).1: i32) };
        return;
    }
}