[llvm-commits] CVS: llvm-java/test/Programs/SingleSource/UnitTests/Lists2.java Makefile
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sat Dec 11 18:51:48 PST 2004
Changes in directory llvm-java/test/Programs/SingleSource/UnitTests:
Lists2.java added (r1.1)
Makefile updated: 1.29 -> 1.30
---
Log message:
Another testcase
---
Diffs of the changes: (+21 -0)
Index: llvm-java/test/Programs/SingleSource/UnitTests/Lists2.java
diff -c /dev/null llvm-java/test/Programs/SingleSource/UnitTests/Lists2.java:1.1
*** /dev/null Sat Dec 11 20:51:47 2004
--- llvm-java/test/Programs/SingleSource/UnitTests/Lists2.java Sat Dec 11 20:51:37 2004
***************
*** 0 ****
--- 1,20 ----
+ import java.util.*;
+
+ public class Lists2
+ {
+ public static void main(String[] args) {
+ List llist = new LinkedList();
+ Test.println(llist.isEmpty());
+
+ for (int i = 0; i < 10; ++i) {
+ llist.add(new Integer(i));
+ }
+ Test.println(llist.isEmpty());
+
+ while (!llist.isEmpty()) {
+ Integer I = (Integer) llist.remove(0);
+ Test.println(I.intValue());
+ }
+ Test.println(llist.isEmpty());
+ }
+ }
Index: llvm-java/test/Programs/SingleSource/UnitTests/Makefile
diff -u llvm-java/test/Programs/SingleSource/UnitTests/Makefile:1.29 llvm-java/test/Programs/SingleSource/UnitTests/Makefile:1.30
--- llvm-java/test/Programs/SingleSource/UnitTests/Makefile:1.29 Sat Dec 11 20:48:43 2004
+++ llvm-java/test/Programs/SingleSource/UnitTests/Makefile Sat Dec 11 20:51:37 2004
@@ -22,6 +22,7 @@
InterfaceCall \
Lists \
Lists1 \
+ Lists2 \
LongCompare \
LookupSwitch \
Numbers \
More information about the llvm-commits
mailing list