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

test-863.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1c4cfaf6a2f9436450fae8c340de079dd4f61d24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
public class TestRefKeywords
{
	static int Main ()
	{
		int i = 0;
		System.TypedReference r = __makeref(i);
		System.Type t = __reftype(r);
		int j = __refvalue( r,int);

		__refvalue(r, int) = 4;
		var x = ( __refvalue(r, int) += 1);

		if (x != 5)
			return 1;

		return 0;
	}
}