[llvm-commits] CVS: llvm-java/test/Programs/SingleSource/UnitTests/Maps1.java
Alkis Evlogimenos
alkis at cs.uiuc.edu
Tue Jan 25 14:31:51 PST 2005
Changes in directory llvm-java/test/Programs/SingleSource/UnitTests:
Maps1.java added (r1.1)
---
Log message:
Test HashMap. We don't pass this becayse Syste.arrayCopy is not implemented
---
Diffs of the changes: (+14 -0)
Maps1.java | 14 ++++++++++++++
1 files changed, 14 insertions(+)
Index: llvm-java/test/Programs/SingleSource/UnitTests/Maps1.java
diff -c /dev/null llvm-java/test/Programs/SingleSource/UnitTests/Maps1.java:1.1
*** /dev/null Tue Jan 25 16:31:50 2005
--- llvm-java/test/Programs/SingleSource/UnitTests/Maps1.java Tue Jan 25 16:31:40 2005
***************
*** 0 ****
--- 1,14 ----
+ import java.util.*;
+
+ public class Maps1
+ {
+ public static Random rand = new Random(0);
+
+ public static void main(String[] args) {
+ HashMap tmap = new HashMap();
+ for (int i = 0; i < 1000; ++i)
+ tmap.put(new Integer(i), new Integer(rand.nextInt()));
+ for (int i = 0; i < 1000; ++i)
+ Test.println(((Integer)tmap.get(new Integer(i))).intValue());
+ }
+ }
More information about the llvm-commits
mailing list