blob: 6f774739879cde675b053ee1ece8306f3fb0d81b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
using Mono.Linker.Tests.Cases.Expectations.Assertions;
namespace Mono.Linker.Tests.Cases.TestFramework {
public class CanCheckInitializersByIndex {
public static void Main ()
{
Method1 ();
Method2 ();
}
[Kept]
[KeptInitializerData (0)]
[KeptInitializerData (1)]
[KeptInitializerData (2)]
static void Method1 ()
{
Helper (new [] {1, 2, 3});
Helper (new [] {1, 2, 3, 4});
Helper (new [] {3, 4, 5});
}
[Kept]
[KeptInitializerData (0)]
static void Method2 ()
{
Helper(new [] {10, 11, 12});
}
[Kept]
static void Helper<T> (T [] arr)
{
}
}
}
|