1 // Compiler options: -r:test-399-lib.dll
7 static void F (RuntimeArgumentHandle rah
)
11 static void G (__arglist
)
13 F (new RuntimeArgumentHandle ());
17 public static int Main ()
19 int result
= Vararg
.AddABunchOfInts (__arglist ( 2, 3, 4 ));
20 Console
.WriteLine ("Answer: {0}", result
);
25 result
= Vararg
.AddASecondBunchOfInts (16, __arglist ( 2, 3, 4 ));
26 Console
.WriteLine ("Answer: {0}", result
);
31 Vararg s
= new Vararg ();
33 result
= s
.InstAddABunchOfInts (__arglist ( 2, 3, 4, 5 ));
34 Console
.WriteLine ("Answer: {0}", result
);
39 result
= s
.InstAddASecondBunchOfInts (16, __arglist ( 2, 3, 4, 5, 6 ));
40 Console
.WriteLine ("Answer: {0}", result
);
45 result
= s
.InstVtAddABunchOfInts (__arglist ( 2, 3, 4, 5 )).res
;
46 Console
.WriteLine ("Answer: {0}", result
);
51 result
= s
.InstVtAddASecondBunchOfInts (16, __arglist ( 2, 3, 4, 5, 6 )).res
;
52 Console
.WriteLine ("Answer: {0}", result
);
57 result
= Vararg
.VtAddABunchOfInts (__arglist ( 2, 3, 4, 5, 1 )).res
;
58 Console
.WriteLine ("Answer: {0}", result
);
63 result
= Vararg
.VtAddASecondBunchOfInts (16, __arglist ( 2, 3, 4, 5, 6, 1 )).res
;
64 Console
.WriteLine ("Answer: {0}", result
);