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

test-175.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2a2ea42ad10efe715d01f59ecc3f79ab545d9d8a (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
28
29
30
31
32
33
34
35
36
37
using System;

struct RVA {
	public uint value;

	public RVA (uint val)
	{
		value = val;
	}

	public static implicit operator RVA (uint val)
	{
		return new RVA (val);
	}

	public static implicit operator uint (RVA rva)
	{
		return rva.value;
	}
}

class X
{
	static int Main ()
	{
		RVA a = 10;
		RVA b = 20;

		if (a > b)
			return 1;

		if (a + b != 30)
			return 2;

		return 0;
	}
}