summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/remove_zsts.rs
blob: 1cf7ad6e3667c11e058f05fb3aa1e98eadbcc747 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
union Foo {
    x: (),
    y: u64,
}

// EMIT_MIR remove_zsts.get_union.RemoveZsts.diff
// EMIT_MIR remove_zsts.get_union.PreCodegen.after.mir
fn get_union() -> Foo {
    Foo { x: () }
}

fn main() {
    get_union();
}