]> git.proxmox.com Git - rustc.git/blame - src/test/mir-opt/deaggregator_test_multiple.rs
Update upstream source from tag 'upstream/1.49.0_beta.4+dfsg1'
[rustc.git] / src / test / mir-opt / deaggregator_test_multiple.rs
CommitLineData
476ff2be
SL
1// Test that deaggregate fires more than once per block
2
3enum Foo {
4 A(i32),
5 B,
6}
7
3dfed10e 8// EMIT_MIR deaggregator_test_multiple.test.Deaggregator.diff
476ff2be
SL
9fn test(x: i32) -> [Foo; 2] {
10 [Foo::A(x), Foo::A(x)]
11}
12
abe05a73
XL
13fn main() {
14 // Make sure the function actually gets instantiated.
15 test(0);
16}