2 using System
.Collections
.Generic
;
4 class StructArray16Test
8 public long p1
, p2
, p3
, p4
, p5
, p6
, p7
, p8
;
9 public object reference
;
14 public long p1
, p2
, p3
, p4
, p5
, p6
, p7
, p8
;
15 public long q1
, q2
, q3
, q4
, q5
, q6
, q7
, q8
;
16 public object reference
;
19 public static void Main ()
21 Random r
= new Random (123);
22 for (int j
= 0; j
< 5000; ++j
)
24 var list64
= new List
<RefAt64
>();
25 var list128
= new List
<RefAt128
>();
26 for (int i
= 0; i
< 200; i
++)
28 // This allocation is just to force collections, to crash more quickly
29 object[] dummy
= new object [r
.Next(3, 100)];
30 list64
.Add (new RefAt64() { reference = new object () }
);
31 list128
.Add (new RefAt128() { reference = new object () }
);