rust/src/test/mir-opt/deaggregator_test.rs
2020-07-29 13:41:11 +02:00

16 lines
255 B
Rust

struct Baz {
x: usize,
y: f32,
z: bool,
}
// EMIT_MIR deaggregator_test.bar.Deaggregator.diff
fn bar(a: usize) -> Baz {
Baz { x: a, y: 0.0, z: false }
}
fn main() {
// Make sure the function actually gets instantiated.
bar(0);
}