2022-08-02 19:44:25 -05:00
|
|
|
// unit-test: Deaggregator
|
|
|
|
|
2016-08-02 13:24:55 -05:00
|
|
|
struct Baz {
|
|
|
|
x: usize,
|
|
|
|
y: f32,
|
|
|
|
z: bool,
|
|
|
|
}
|
|
|
|
|
2020-07-27 14:22:43 -05:00
|
|
|
// EMIT_MIR deaggregator_test.bar.Deaggregator.diff
|
2016-08-02 13:24:55 -05:00
|
|
|
fn bar(a: usize) -> Baz {
|
|
|
|
Baz { x: a, y: 0.0, z: false }
|
|
|
|
}
|
|
|
|
|
2017-10-30 12:20:07 -05:00
|
|
|
fn main() {
|
|
|
|
// Make sure the function actually gets instantiated.
|
|
|
|
bar(0);
|
|
|
|
}
|