]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/deaggregator_test_multiple.rs
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[rust.git] / src / test / mir-opt / deaggregator_test_multiple.rs
1 // Test that deaggregate fires more than once per block
2
3 enum Foo {
4     A(i32),
5     B,
6 }
7
8 // EMIT_MIR deaggregator_test_multiple.test.Deaggregator.diff
9 fn test(x: i32) -> [Foo; 2] {
10     [Foo::A(x), Foo::A(x)]
11 }
12
13 fn main() {
14     // Make sure the function actually gets instantiated.
15     test(0);
16 }