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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@novell.com>2002-07-20 19:42:40 +0400
committerMartin Baulig <martin@novell.com>2002-07-20 19:42:40 +0400
commit5e0be35279c02f6ac2b7ba133c0488e30d0b9691 (patch)
tree76e5e484bf57deb2ef89ebafc8899763994eb50f /mcs/tests/test-146.cs
parentced5f3e543fcb69fd44eb80bcabb478bc9595b6c (diff)
2002-07-20 Martin Baulig <martin@gnome.org>
* README.tests: Added (empty) list of all the test cases. When you add any test cases, please add them to this file. * test-146.cs: Added test for bug #27977 which is now fixed. svn path=/trunk/mcs/; revision=5969
Diffstat (limited to 'mcs/tests/test-146.cs')
-rw-r--r--mcs/tests/test-146.cs58
1 files changed, 58 insertions, 0 deletions
diff --git a/mcs/tests/test-146.cs b/mcs/tests/test-146.cs
new file mode 100644
index 00000000000..e45fb40f95a
--- /dev/null
+++ b/mcs/tests/test-146.cs
@@ -0,0 +1,58 @@
+using System;
+
+public class Test
+{
+ public static int Main ()
+ {
+ ulong a = 0;
+ bool[] r = new bool [16];
+
+ for (int i = 1; i < 16; i++)
+ r [i] = false;
+
+ if (a < System.UInt64.MaxValue)
+ r [0] = true;
+ if (a <= System.UInt64.MaxValue)
+ r [1] = true;
+ if (System.UInt64.MaxValue > a)
+ r [2] = true;
+ if (System.UInt64.MaxValue >= a)
+ r [3] = true;
+
+ float b = 0F;
+ if (b < System.UInt64.MaxValue)
+ r [4] = true;
+ if (b <= System.UInt64.MaxValue)
+ r [5] = true;
+ if (System.UInt64.MaxValue > b)
+ r [6] = true;
+ if (System.UInt64.MaxValue >= b)
+ r [7] = true;
+
+ ushort c = 0;
+ if (c < System.UInt16.MaxValue)
+ r [8] = true;
+ if (c <= System.UInt16.MaxValue)
+ r [9] = true;
+ if (System.UInt16.MaxValue > c)
+ r [10] = true;
+ if (System.UInt16.MaxValue >= c)
+ r [11] = true;
+
+ byte d = 0;
+ if (d < System.Byte.MaxValue)
+ r [12] = true;
+ if (d <= System.Byte.MaxValue)
+ r [13] = true;
+ if (System.Byte.MaxValue > d)
+ r [14] = true;
+ if (System.Byte.MaxValue >= d)
+ r [15] = true;
+
+ foreach (bool check in r)
+ if (!check)
+ return 1;
+
+ return 0;
+ }
+}