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

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

class X {

	public const short a = 128;
	public const int b = 0xffff;
	public const double c = 123.4;

	public const long d = 5;
	// public const int e = 2147483648;

	public const byte f = 127;

	public const char c1 = (char) 0xffff;
	public const char c2 = (char) 123.4;
	public const char c3 = (char) a;
	public const char c4 = (char) b;
	public const char c5 = (char) c;

	public const short s1 = (short) b;
	public const short s2 = (short) c;

	static int Main ()
	{
		return 0;
	}
}