Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
---
 regression/jvm/ArrayTest.java |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/regression/jvm/ArrayTest.java b/regression/jvm/ArrayTest.java
index a76c3b5..bfada1a 100644
--- a/regression/jvm/ArrayTest.java
+++ b/regression/jvm/ArrayTest.java
@@ -127,6 +127,18 @@ public class ArrayTest extends TestCase {
         assertEquals(a, array[1]);
     }
 
+    private static void testFloatElementLoadStore() {
+        float array[] = new float[2];
+        float a = 1.34567f;
+        float b = -5.2311f;
+
+        array[1] = a;
+        array[0] = b;
+
+        assertEquals(b, array[0]);
+        assertEquals(a, array[1]);
+    }
+
     public static void testArrayClass() {
         int big_arr[][][]  = new int[2][2][2];
 
@@ -153,6 +165,7 @@ public class ArrayTest extends TestCase {
         testShortElementLoadStore();
         /* FIXME: testLongElementLoadStore(); */
         testReferenceElementLoadStore();
+        testFloatElementLoadStore();
 
         testArrayClass();
     }
-- 
1.6.0.6


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to