Author: zoltan
Date: 2005-11-27 16:15:11 -0500 (Sun, 27 Nov 2005)
New Revision: 53529
Modified:
trunk/mono/mono/mini/ChangeLog
trunk/mono/mono/mini/basic-calls.cs
trunk/mono/mono/mini/objects.cs
Log:
2005-11-27 Zoltan Varga <[EMAIL PROTECTED]>
* basic-long.cs basic-calls.cs objects.cs: Move some tests to the
correct files.
Modified: trunk/mono/mono/mini/ChangeLog
===================================================================
--- trunk/mono/mono/mini/ChangeLog 2005-11-27 19:17:17 UTC (rev 53528)
+++ trunk/mono/mono/mini/ChangeLog 2005-11-27 21:15:11 UTC (rev 53529)
@@ -1,5 +1,8 @@
2005-11-27 Zoltan Varga <[EMAIL PROTECTED]>
+ * basic-long.cs basic-calls.cs objects.cs: Move some tests to the
+ correct files.
+
* basic.cs: Remove test_0_byte_compares test which was moved to
objects.cs a long time ago.
Modified: trunk/mono/mono/mini/basic-calls.cs
===================================================================
--- trunk/mono/mono/mini/basic-calls.cs 2005-11-27 19:17:17 UTC (rev 53528)
+++ trunk/mono/mono/mini/basic-calls.cs 2005-11-27 21:15:11 UTC (rev 53529)
@@ -260,5 +260,38 @@
return 2;
return 1;
}
+
+ static long return_5low () {
+ return 5;
+ }
+
+ static long return_5high () {
+ return 0x500000000;
+ }
+
+ public static int test_3_long_ret () {
+ long val = return_5low ();
+ return (int) (val - 2);
+ }
+
+ public static int test_1_long_ret2 () {
+ long val = return_5high ();
+ if (val > 0xffffffff)
+ return 1;
+ return 0;
+ }
+
+ static void doit (double value, out long m) {
+ m = (long) value;
+ }
+
+ public static int test_0_ftol_clobber () {
+ long m;
+ doit (1.3, out m);
+ if (m != 1)
+ return 2;
+ return 0;
+ }
+
}
Modified: trunk/mono/mono/mini/objects.cs
===================================================================
--- trunk/mono/mono/mini/objects.cs 2005-11-27 19:17:17 UTC (rev 53528)
+++ trunk/mono/mono/mini/objects.cs 2005-11-27 21:15:11 UTC (rev 53529)
@@ -912,5 +912,19 @@
{
return arg_only_written ("md.in", null);
}
+
+ static long position = 0;
+
+ public static int test_4_static_inc_long () {
+
+ int count = 4;
+
+ position = 0;
+
+ position += count;
+
+ return (int)position;
+ }
+
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches