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

test-728.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 08ce96c518f12ed61cd66f14669afd3960e0c41d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;

public class Tests
{
	enum MyEnumUlong : long
	{
		Value_1,
		Value_3 = 2
	}

	public static int Main ()
	{
		var d = MyEnumUlong.Value_1;
		d = d + (byte) 1;
		d += (byte) 1;

		if (d != MyEnumUlong.Value_3)
			return 1;

		return 0;
	}
}