]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/deaggregator_test.rs
Stop deaggegating MIR.
[rust.git] / tests / mir-opt / deaggregator_test.rs
1 // unit-test: Deaggregator
2
3 struct Baz {
4     x: usize,
5     y: f32,
6     z: bool,
7 }
8
9 // EMIT_MIR deaggregator_test.bar.Deaggregator.diff
10 fn bar(a: usize) -> Baz {
11     Baz { x: a, y: 0.0, z: false }
12 }
13
14 fn main() {
15     // Make sure the function actually gets instantiated.
16     bar(0);
17 }