* corlib.build: remove AppDomain.cs from the corlib_res.dll.
[mono.git] / mcs / tests / test-10.cs
1 /*
2  * Test explicit numeric conversions.
3  */
4
5 using System;
6
7 class X {
8
9         void asbyte (byte a, ushort b, uint c, ulong d, char e)
10         {
11         }
12
13         void bsbyte ()
14         {
15                 sbyte s = 0;
16
17                 asbyte ((byte) s, (ushort) s, (uint) s, (ulong) s, (char) s);
18         }
19
20         void abyte (sbyte a, char b)
21         {
22         }
23
24         void bbyte ()
25         {
26                 byte b = 0;
27
28                 abyte ((sbyte) b, (char) b);
29         }
30
31         void ashort (sbyte a, byte b, ushort c, uint d, ulong e, char f)
32         {
33         }
34
35         void bshort ()
36         {
37                 short a = 1;
38
39                 ashort ((sbyte) a, (byte) a, (ushort) a, (uint) a, (ulong) a, (char) a);
40         }
41
42         void aushort (sbyte a, byte b, short c, char d)
43         {
44         }
45
46         void bushort ()
47         {
48                 ushort a = 1;
49                 aushort ((sbyte) a, (byte) a, (short) a, (char) a);
50         }
51
52         void aint (sbyte a, byte b, short c, ushort d, uint e, ulong f, char g)
53         {
54         }
55
56         void bint ()
57         {
58                 int a = 1;
59
60                 aint ((sbyte) a, (byte) a, (short) a, (ushort) a, (uint) a, (ulong) a, (char) a);
61         }
62
63         void auint (sbyte a, byte b, short c, ushort d, int e, char f)
64         {
65         }
66
67         void buint ()
68         {
69                 uint a = 1;
70
71                 auint ((sbyte) a, (byte) a, (short) a, (ushort) a, (int) a, (char) a);
72         }
73
74         void along (sbyte a, byte b, short c, ushort d, int e, uint f, ulong g, char h)
75         {
76         }
77
78         void blong ()
79         {
80                 long a = 1;
81
82                 along ((sbyte) a, (byte) a, (short) a, (ushort) a, (int) a, (uint) a, (ulong) a, (char) a);
83         }
84
85         void aulong (sbyte a, byte b, short c, ushort d, int e, uint f, long g, char h)
86         {
87         }
88
89         void bulong ()
90         {
91                 ulong a = 1;
92
93                 aulong ((sbyte) a, (byte) a, (short) a, (ushort) a, (int) a, (uint) a, (long) a, (char) a);
94         }
95
96         void achar (sbyte a, byte b, short c)
97         {
98
99         }
100
101         void bchar ()
102         {
103                 char a = (char) 1;
104
105                 achar ((sbyte) a, (byte) a, (short) a);
106         }
107
108         void afloat (sbyte a, byte b, short c, ushort d, int e, uint f, long ll, ulong g, char h, decimal dd)
109         {
110         }
111
112         void bfloat ()
113         {
114                 float a = 1;
115
116                 afloat ((sbyte) a, (byte) a, (short) a, (ushort) a, (int) a, (uint) a, (long) a,
117                         (ulong) a, (char) a, (decimal) a);
118         }
119
120         void adouble (sbyte a, byte b, short c, ushort d, int e, uint f, long ll, ulong g, char h,
121                       float ff, decimal dd)
122         {
123         }
124         
125         void bdouble ()
126         {
127                 double a = 1;
128
129                 adouble ((sbyte) a, (byte) a, (short) a, (ushort) a, (int) a, (uint) a, (long) a,
130                         (ulong) a, (char) a, (float) a, (decimal) a);
131         }
132
133         static void Main ()
134         {
135
136         }
137 }