[llvm-commits] CVS: llvm-java/test/Programs/SingleSource/UnitTests/Lists6.java
Alkis Evlogimenos
alkis at cs.uiuc.edu
Wed Feb 2 08:35:22 PST 2005
Changes in directory llvm-java/test/Programs/SingleSource/UnitTests:
Lists6.java added (r1.1)
---
Log message:
Add test for ArrayList.
---
Diffs of the changes: (+16 -0)
Lists6.java | 16 ++++++++++++++++
1 files changed, 16 insertions(+)
Index: llvm-java/test/Programs/SingleSource/UnitTests/Lists6.java
diff -c /dev/null llvm-java/test/Programs/SingleSource/UnitTests/Lists6.java:1.1
*** /dev/null Wed Feb 2 10:35:21 2005
--- llvm-java/test/Programs/SingleSource/UnitTests/Lists6.java Wed Feb 2 10:35:11 2005
***************
*** 0 ****
--- 1,16 ----
+ import java.util.*;
+
+ public class Lists6
+ {
+ public static void main(String[] args) {
+ List llist = new ArrayList();
+ for (int i = 0; i < 15; ++i) {
+ llist.add(new Integer(i));
+ }
+
+ for (Iterator i = llist.iterator(); i.hasNext(); ) {
+ Integer I = (Integer) i.next();
+ Test.println(I.intValue());
+ }
+ }
+ }
More information about the llvm-commits
mailing list