[llvm-commits] CVS: llvm-java/test/Programs/SingleSource/UnitTests/Equals.java
Alkis Evlogimenos
alkis at cs.uiuc.edu
Mon Jan 17 18:36:25 PST 2005
Changes in directory llvm-java/test/Programs/SingleSource/UnitTests:
Equals.java added (r1.1)
---
Log message:
New test
---
Diffs of the changes: (+20 -0)
Index: llvm-java/test/Programs/SingleSource/UnitTests/Equals.java
diff -c /dev/null llvm-java/test/Programs/SingleSource/UnitTests/Equals.java:1.1
*** /dev/null Mon Jan 17 20:36:23 2005
--- llvm-java/test/Programs/SingleSource/UnitTests/Equals.java Mon Jan 17 20:36:13 2005
***************
*** 0 ****
--- 1,20 ----
+ public class Equals
+ {
+ public static void main(String[] args) {
+ Integer i1 = new Integer(123);
+ Integer i2 = new Integer(234);
+ Integer i3 = new Integer(123);
+
+ Test.println(i1.equals(i1));
+ Test.println(i1 == i1);
+
+ Test.println(i1.equals(i2));
+ Test.println(i1 == i2);
+
+ Test.println(i1.equals(i3));
+ Test.println(i1 == i3);
+
+ Test.println(i1.equals(new Integer(123)));
+ Test.println(i1 == new Integer(123));
+ }
+ }
More information about the llvm-commits
mailing list