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

test-10.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 20e1cc6ee816dbb7db9722fb9c679b90080cd977 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
/*
 * Test explicit numeric conversions.
 */

using System;

class X {

	void asbyte (byte a, ushort b, uint c, ulong d, char e)
	{
	}

	void bsbyte ()
	{
		sbyte s = 0;

		asbyte ((byte) s, (ushort) s, (uint) s, (ulong) s, (char) s);
		asbyte (checked ((byte) s), checked ((ushort) s), checked ((uint) s), checked ((ulong) s), checked ((char) s));
	}

	void abyte (sbyte a, char b)
	{
	}

	void bbyte ()
	{
		byte b = 0;

		abyte ((sbyte) b, (char) b);
		abyte (checked ((sbyte) b), checked ((char) b));
	}

	void ashort (sbyte a, byte b, ushort c, uint d, ulong e, char f)
	{
	}

	void bshort ()
	{
		short a = 1;

		ashort ((sbyte) a, (byte) a, (ushort) a, (uint) a, (ulong) a, (char) a);
		ashort (checked ((sbyte) a), checked ((byte) a), checked ((ushort) a), checked ((uint) a), checked ((ulong) a), checked ((char) a));
	}

	void aushort (sbyte a, byte b, short c, char d)
	{
	}

	void bushort ()
	{
		ushort a = 1;
		aushort ((sbyte) a, (byte) a, (short) a, (char) a);
		aushort (checked ((sbyte) a), checked ((byte) a), checked ((short) a), checked ((char) a));
	}

	void aint (sbyte a, byte b, short c, ushort d, uint e, ulong f, char g)
	{
	}

	void bint ()
	{
		int a = 1;

		aint ((sbyte) a, (byte) a, (short) a, (ushort) a, (uint) a, (ulong) a, (char) a);
		aint (checked ((sbyte) a), checked ((byte) a), checked ((short) a), checked ((ushort) a), checked ((uint) a), checked ((ulong) a), checked ((char) a));
	}

	void auint (sbyte a, byte b, short c, ushort d, int e, char f)
	{
	}

	void buint ()
	{
		uint a = 1;

		auint ((sbyte) a, (byte) a, (short) a, (ushort) a, (int) a, (char) a);
		auint (checked ((sbyte) a), checked ((byte) a), checked ((short) a), checked ((ushort) a), checked ((int) a), checked ((char) a));
	}

	void along (sbyte a, byte b, short c, ushort d, int e, uint f, ulong g, char h)
	{
	}

	void blong ()
	{
		long a = 1;

		along ((sbyte) a, (byte) a, (short) a, (ushort) a, (int) a, (uint) a, (ulong) a, (char) a);
		along (checked ((sbyte) a), checked ((byte) a), checked ((short) a), checked ((ushort) a), checked ((int) a), checked ((uint) a), checked ((ulong) a), checked ((char) a));
	}

	void aulong (sbyte a, byte b, short c, ushort d, int e, uint f, long g, char h)
	{
	}

	void bulong ()
	{
		ulong a = 1;

		aulong ((sbyte) a, (byte) a, (short) a, (ushort) a, (int) a, (uint) a, (long) a, (char) a);
		aulong (checked ((sbyte) a), checked ((byte) a), checked ((short) a), checked ((ushort) a), checked ((int) a), checked ((uint) a), checked ((long) a), checked ((char) a));
	}

	void achar (sbyte a, byte b, short c)
	{

	}

	void bchar ()
	{
		char a = (char) 1;

		achar ((sbyte) a, (byte) a, (short) a);
		achar (checked ((sbyte) a), checked ((byte) a), checked ((short) a));
	}

	void afloat (sbyte a, byte b, short c, ushort d, int e, uint f, long ll, ulong g, char h, decimal dd)
	{
	}

	void bfloat ()
	{
		float a = 1;

		afloat ((sbyte) a, (byte) a, (short) a, (ushort) a, (int) a, (uint) a, (long) a,
			(ulong) a, (char) a, (decimal) a);
		afloat (checked ((sbyte) a), checked ((byte) a), checked ((short) a), checked ((ushort) a), checked ((int) a), checked ((uint) a), checked ((long) a),
checked (			(ulong) a), checked ((char) a), checked ((decimal) a));
	}

	void adouble (sbyte a, byte b, short c, ushort d, int e, uint f, long ll, ulong g, char h,
		      float ff, decimal dd)
	{
	}
	
	void bdouble ()
	{
		double a = 1;

		adouble ((sbyte) a, (byte) a, (short) a, (ushort) a, (int) a, (uint) a, (long) a,
			(ulong) a, (char) a, (float) a, (decimal) a);
		adouble (checked ((sbyte) a), checked ((byte) a), checked ((short) a), checked ((ushort) a), checked ((int) a), checked ((uint) a), checked ((long) a),
checked (			(ulong) a), checked ((char) a), checked ((float) a), (decimal) a);
	}

	static void Main ()
	{

	}
}