rust/tests/mir-opt/deaggregator_test.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
283 B
Rust
Raw Normal View History

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