[llvm-commits] CVS: llvm-java/test/Programs/SingleSource/UnitTests/Lists1.java Makefile
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sat Dec 11 18:48:55 PST 2004
Changes in directory llvm-java/test/Programs/SingleSource/UnitTests:
Lists1.java added (r1.1)
Makefile updated: 1.28 -> 1.29
---
Log message:
Add new testcase
---
Diffs of the changes: (+23 -1)
Index: llvm-java/test/Programs/SingleSource/UnitTests/Lists1.java
diff -c /dev/null llvm-java/test/Programs/SingleSource/UnitTests/Lists1.java:1.1
*** /dev/null Sat Dec 11 20:48:54 2004
--- llvm-java/test/Programs/SingleSource/UnitTests/Lists1.java Sat Dec 11 20:48:43 2004
***************
*** 0 ****
--- 1,22 ----
+ import java.util.*;
+
+ public class Lists1
+ {
+ public static void main(String[] args) {
+ List list = new LinkedList();
+ for (int i = 0; i < 10; ++i) {
+ list.add(new Integer(i));
+ }
+
+ Test.println(list.isEmpty());
+ Object[] array = list.toArray();
+
+ for (int i = 0; i < array.length; ++i) {
+ Test.println(((Integer) array[i]).equals(list.get(i)));
+ }
+
+ list.clear();
+
+ Test.println(list.isEmpty());
+ }
+ }
Index: llvm-java/test/Programs/SingleSource/UnitTests/Makefile
diff -u llvm-java/test/Programs/SingleSource/UnitTests/Makefile:1.28 llvm-java/test/Programs/SingleSource/UnitTests/Makefile:1.29
--- llvm-java/test/Programs/SingleSource/UnitTests/Makefile:1.28 Fri Dec 10 17:50:22 2004
+++ llvm-java/test/Programs/SingleSource/UnitTests/Makefile Sat Dec 11 20:48:43 2004
@@ -21,6 +21,7 @@
InstanceOf \
InterfaceCall \
Lists \
+ Lists1 \
LongCompare \
LookupSwitch \
Numbers \
@@ -39,7 +40,6 @@
sieve \
random \
takfp \
-# Lists1 \
# Strings \
# MultipleInterfaces \
# MultiArray \
More information about the llvm-commits
mailing list