[llvm-commits] CVS: llvm-java/test/Programs/SingleSource/UnitTests/If.java
Alkis Evlogimenos
alkis at cs.uiuc.edu
Fri Dec 10 01:05:46 PST 2004
Changes in directory llvm-java/test/Programs/SingleSource/UnitTests:
If.java updated: 1.4 -> 1.5
---
Log message:
Make If more interesting. We actually fail this testcase!
---
Diffs of the changes: (+5 -1)
Index: llvm-java/test/Programs/SingleSource/UnitTests/If.java
diff -u llvm-java/test/Programs/SingleSource/UnitTests/If.java:1.4 llvm-java/test/Programs/SingleSource/UnitTests/If.java:1.5
--- llvm-java/test/Programs/SingleSource/UnitTests/If.java:1.4 Wed Nov 24 03:04:59 2004
+++ llvm-java/test/Programs/SingleSource/UnitTests/If.java Fri Dec 10 03:05:35 2004
@@ -1,8 +1,12 @@
public class If
{
+ private static boolean isZero(int i) {
+ return i == 0;
+ }
+
public static void main(String[] args) {
int i = 0;
- if (i == 0)
+ if (isZero(i))
Test.print_int_ln(0);
else
Test.print_int_ln(1);
More information about the llvm-commits
mailing list