rust/src/test/mir-opt/deaggregator_test.rs

16 lines
243 B
Rust
Raw Normal View History

2016-08-02 13:24:55 -05:00
struct Baz {
x: usize,
y: f32,
z: bool,
}
2020-04-02 16:09:01 -05:00
// EMIT_MIR rustc.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);
}