2009-02-10 Jeffrey Stedfast <fejj@novell.com>
[mono-project/dkf.git] / mcs / tests / test-146.cs
blobe45fb40f95a8c20047e9875170131043ea37cae0
1 using System;
3 public class Test
5 public static int Main ()
7 ulong a = 0;
8 bool[] r = new bool [16];
10 for (int i = 1; i < 16; i++)
11 r [i] = false;
13 if (a < System.UInt64.MaxValue)
14 r [0] = true;
15 if (a <= System.UInt64.MaxValue)
16 r [1] = true;
17 if (System.UInt64.MaxValue > a)
18 r [2] = true;
19 if (System.UInt64.MaxValue >= a)
20 r [3] = true;
22 float b = 0F;
23 if (b < System.UInt64.MaxValue)
24 r [4] = true;
25 if (b <= System.UInt64.MaxValue)
26 r [5] = true;
27 if (System.UInt64.MaxValue > b)
28 r [6] = true;
29 if (System.UInt64.MaxValue >= b)
30 r [7] = true;
32 ushort c = 0;
33 if (c < System.UInt16.MaxValue)
34 r [8] = true;
35 if (c <= System.UInt16.MaxValue)
36 r [9] = true;
37 if (System.UInt16.MaxValue > c)
38 r [10] = true;
39 if (System.UInt16.MaxValue >= c)
40 r [11] = true;
42 byte d = 0;
43 if (d < System.Byte.MaxValue)
44 r [12] = true;
45 if (d <= System.Byte.MaxValue)
46 r [13] = true;
47 if (System.Byte.MaxValue > d)
48 r [14] = true;
49 if (System.Byte.MaxValue >= d)
50 r [15] = true;
52 foreach (bool check in r)
53 if (!check)
54 return 1;
56 return 0;