Permalink
Browse files

2007-11-05 Rodrigo Kumpera <rkumpera@novell.com>

	* soft-float-tests.cs: Tests for soft-float.
	Bug #323746 is regression tested by test.

	* Makefile.am: Added the new test to the suite.



svn path=/trunk/mono/; revision=88939
  • Loading branch information...
1 parent fdf015a commit e032ba6bcba9974932357a0896de5a4cbc8e3c10 @kumpera kumpera committed Nov 5, 2007
Showing with 41 additions and 1 deletion.
  1. +8 −0 mono/tests/ChangeLog
  2. +2 −1 mono/tests/Makefile.am
  3. +31 −0 mono/tests/soft-float-tests.cs
View
@@ -1,3 +1,11 @@
+2007-11-05 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * soft-float-tests.cs: Tests for soft-float.
+ Bug #323746 is regression tested by test.
+
+ * Makefile.am: Added the new test to the suite.
+
+
2007-10-29 Rodrigo Kumpera <rkumpera@novell.com>
* bug-335131.2.cs: Regression test for bug #335131.
View
@@ -238,7 +238,8 @@ TEST_CS_SRC= \
exists.cs \
handleref.cs \
transparentproxy.cs \
- imt_big_iface_test.cs
+ imt_big_iface_test.cs \
+ soft-float-tests.cs
if X86
# bug #71274
@@ -0,0 +1,31 @@
+using System;
+
+public class Driver {
+ static float D = 3;
+
+ public static int StoreStaticField (float y) {
+ D = y;
+ return 0;
+ }
+
+ public static float ReadSingle () {
+ Object o = "";
+ o.ToString ();
+ return 64f;
+ }
+
+ public static int TestStoreArray() {
+ float[] arr = new float[10];
+ arr[0] = ReadSingle();
+ return 0;
+ }
+
+
+ public static int Main () {
+ int res = 0;
+ res = StoreStaticField (128f);
+ res |= TestStoreArray();
+
+ return res;
+ }
+}

0 comments on commit e032ba6

Please sign in to comment.