Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-811.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 09d5b4bbbfc564ec63acc3729c92351e535cb1d0 (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
using System;

class C
{
	static void TestRefValue (__arglist)
	{
		ArgIterator args = new ArgIterator (__arglist);

		var o = __refvalue ( args.GetNextArg (),int);
		for (int i = 0; i < args.GetRemainingCount (); i++) {
			Console.WriteLine (__refvalue (args.GetNextArg (), int));
		}
	}

	public static int Main ()
	{
		int i = 1;
		TypedReference tr = __makeref (i);
		Type t = __reftype (tr);
		if (t != i.GetType ())
			return 1;

		TestRefValue (__arglist (5, 1, 2));

		return 0;
	}
}