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