[llvm-commits] CVS: llvm-java/test/Programs/SingleSource/UnitTests/Lists.java Makefile
Alkis Evlogimenos
alkis at cs.uiuc.edu
Fri Dec 10 02:20:10 PST 2004
Changes in directory llvm-java/test/Programs/SingleSource/UnitTests:
Lists.java added (r1.1)
Makefile updated: 1.23 -> 1.24
---
Log message:
Add new test.
---
Diffs of the changes: (+17 -1)
Index: llvm-java/test/Programs/SingleSource/UnitTests/Lists.java
diff -c /dev/null llvm-java/test/Programs/SingleSource/UnitTests/Lists.java:1.1
*** /dev/null Fri Dec 10 04:20:10 2004
--- llvm-java/test/Programs/SingleSource/UnitTests/Lists.java Fri Dec 10 04:20:00 2004
***************
*** 0 ****
--- 1,16 ----
+ import java.util.*;
+
+ public class Lists
+ {
+ public static void main(String[] args) {
+ LinkedList llist = new LinkedList();
+ for (int i = 0; i < 10; ++i) {
+ llist.add(new Integer(i));
+ }
+
+ while (!llist.isEmpty()) {
+ Integer I = (Integer) llist.removeFirst();
+ Test.print_int_ln(I.intValue());
+ }
+ }
+ }
Index: llvm-java/test/Programs/SingleSource/UnitTests/Makefile
diff -u llvm-java/test/Programs/SingleSource/UnitTests/Makefile:1.23 llvm-java/test/Programs/SingleSource/UnitTests/Makefile:1.24
--- llvm-java/test/Programs/SingleSource/UnitTests/Makefile:1.23 Fri Dec 10 01:38:15 2004
+++ llvm-java/test/Programs/SingleSource/UnitTests/Makefile Fri Dec 10 04:20:00 2004
@@ -18,6 +18,7 @@
If \
InstanceOf \
InterfaceCall \
+ Lists \
LongCompare \
LookupSwitch \
Numbers \
@@ -27,7 +28,6 @@
VirtualCall \
VTable \
# Strings \
-# List \
# MultipleInterfaces \
# MultiArray \
More information about the llvm-commits
mailing list