Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-811.cs
1 using System;
2
3 class C
4 {
5         static void TestRefValue (__arglist)
6         {
7                 ArgIterator args = new ArgIterator (__arglist);
8
9                 var o = __refvalue ( args.GetNextArg (),int);
10                 for (int i = 0; i < args.GetRemainingCount (); i++) {
11                         Console.WriteLine (__refvalue (args.GetNextArg (), int));
12                 }
13         }
14
15         public static int Main ()
16         {
17                 int i = 1;
18                 TypedReference tr = __makeref (i);
19                 Type t = __reftype (tr);
20                 if (t != i.GetType ())
21                         return 1;
22
23                 TestRefValue (__arglist (5, 1, 2));
24
25                 return 0;
26         }
27 }