[llvm-commits] CVS: llvm/test/Programs/SingleSource/Gizmos/sumarray.c
Chris Lattner
lattner at cs.uiuc.edu
Thu Oct 23 11:01:23 PDT 2003
Changes in directory llvm/test/Programs/SingleSource/Gizmos:
sumarray.c updated: 1.1 -> 1.2
---
Log message:
Fix test to return 0 on success
---
Diffs of the changes: (+3 -1)
Index: llvm/test/Programs/SingleSource/Gizmos/sumarray.c
diff -u llvm/test/Programs/SingleSource/Gizmos/sumarray.c:1.1 llvm/test/Programs/SingleSource/Gizmos/sumarray.c:1.2
--- llvm/test/Programs/SingleSource/Gizmos/sumarray.c:1.1 Fri Dec 14 10:13:38 2001
+++ llvm/test/Programs/SingleSource/Gizmos/sumarray.c Thu Oct 23 10:59:59 2003
@@ -1,4 +1,5 @@
#include <stdlib.h>
+#include <stdio.h>
int SumArray(int Array[], int Num) {
unsigned i, Result = 0;
@@ -19,5 +20,6 @@
for (i = 1; i < 100; i += 2)
Array[i] = i*2;
- return SumArray(Array, 100);
+ printf("Produced: %d\n", SumArray(Array, 100));
+ return 0;
}
More information about the llvm-commits
mailing list