]>
Commit | Line | Data |
---|---|---|
f2b60f7d FG |
1 | // unit-test: Deaggregator |
2 | ||
5bcae85e SL |
3 | struct Baz { |
4 | x: usize, | |
5 | y: f32, | |
6 | z: bool, | |
7 | } | |
8 | ||
3dfed10e | 9 | // EMIT_MIR deaggregator_test.bar.Deaggregator.diff |
5bcae85e SL |
10 | fn bar(a: usize) -> Baz { |
11 | Baz { x: a, y: 0.0, z: false } | |
12 | } | |
13 | ||
abe05a73 XL |
14 | fn main() { |
15 | // Make sure the function actually gets instantiated. | |
16 | bar(0); | |
17 | } |