summaryrefslogtreecommitdiffstats
path: root/src/test/mir-opt/deaggregator_test.rs
blob: ee59402af386ba1d16ec8ffd93edfd1889acc608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// unit-test: Deaggregator

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);
}