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