rust/tests/mir-opt/remove_zsts.rs

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

16 lines
237 B
Rust
Raw Permalink Normal View History

// skip-filecheck
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();
}