blob: 46305fe21d28c2c33d325974fb8f6cd1e7bb4b53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// unit-test: Deaggregator
// Test that deaggregate fires more than once per block
enum Foo {
A(i32),
B,
}
// EMIT_MIR deaggregator_test_multiple.test.Deaggregator.diff
fn test(x: i32) -> [Foo; 2] {
[Foo::A(x), Foo::A(x)]
}
fn main() {
// Make sure the function actually gets instantiated.
test(0);
}
|