[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/2002-05-02-ArgumentTest.c 2002-08-02-CastTest.c 2003-04-22-Switch.c 2003-05-02-DependentPHI.c 2003-07-08-BitOpsTest.c printargs.c StructModifyTest.c
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Wed Nov 9 10:08:34 PST 2005
Changes in directory llvm-test/SingleSource/UnitTests:
2002-05-02-ArgumentTest.c updated: 1.1 -> 1.2
2002-08-02-CastTest.c updated: 1.1 -> 1.2
2003-04-22-Switch.c updated: 1.2 -> 1.3
2003-05-02-DependentPHI.c updated: 1.1 -> 1.2
2003-07-08-BitOpsTest.c updated: 1.1 -> 1.2
printargs.c updated: 1.2 -> 1.3
StructModifyTest.c updated: 1.1 -> 1.2
---
Log message:
These warnings were bugging me
---
Diffs of the changes: (+14 -7)
2002-05-02-ArgumentTest.c | 3 ++-
2002-08-02-CastTest.c | 3 ++-
2003-04-22-Switch.c | 3 ++-
2003-05-02-DependentPHI.c | 3 ++-
2003-07-08-BitOpsTest.c | 3 ++-
StructModifyTest.c | 3 ++-
printargs.c | 3 ++-
7 files changed, 14 insertions(+), 7 deletions(-)
Index: llvm-test/SingleSource/UnitTests/2002-05-02-ArgumentTest.c
diff -u llvm-test/SingleSource/UnitTests/2002-05-02-ArgumentTest.c:1.1 llvm-test/SingleSource/UnitTests/2002-05-02-ArgumentTest.c:1.2
--- llvm-test/SingleSource/UnitTests/2002-05-02-ArgumentTest.c:1.1 Thu May 2 12:43:17 2002
+++ llvm-test/SingleSource/UnitTests/2002-05-02-ArgumentTest.c Wed Nov 9 12:08:08 2005
@@ -3,7 +3,8 @@
printf("%d, %f, %d, %lld, %d, %f\n", s, X, C, LL, I, D);
}
-void main() {
+int main() {
testfunc(12, 1.245f, 'x', 123456677890LL, -10, 45e14);
+ return 0;
}
Index: llvm-test/SingleSource/UnitTests/2002-08-02-CastTest.c
diff -u llvm-test/SingleSource/UnitTests/2002-08-02-CastTest.c:1.1 llvm-test/SingleSource/UnitTests/2002-08-02-CastTest.c:1.2
--- llvm-test/SingleSource/UnitTests/2002-08-02-CastTest.c:1.1 Fri Aug 2 13:44:13 2002
+++ llvm-test/SingleSource/UnitTests/2002-08-02-CastTest.c Wed Nov 9 12:08:08 2005
@@ -4,7 +4,8 @@
return (unsigned char)X;
}
-void main() {
+int main() {
printf("%d\n", test(123456));
+ return 0;
}
Index: llvm-test/SingleSource/UnitTests/2003-04-22-Switch.c
diff -u llvm-test/SingleSource/UnitTests/2003-04-22-Switch.c:1.2 llvm-test/SingleSource/UnitTests/2003-04-22-Switch.c:1.3
--- llvm-test/SingleSource/UnitTests/2003-04-22-Switch.c:1.2 Wed Apr 23 11:18:37 2003
+++ llvm-test/SingleSource/UnitTests/2003-04-22-Switch.c Wed Nov 9 12:08:08 2005
@@ -17,8 +17,9 @@
}
-void main() {
+int main() {
unsigned i;
for (i = 0; i < 10; ++i)
func(i);
+ return 0;
}
Index: llvm-test/SingleSource/UnitTests/2003-05-02-DependentPHI.c
diff -u llvm-test/SingleSource/UnitTests/2003-05-02-DependentPHI.c:1.1 llvm-test/SingleSource/UnitTests/2003-05-02-DependentPHI.c:1.2
--- llvm-test/SingleSource/UnitTests/2003-05-02-DependentPHI.c:1.1 Sat May 3 01:58:11 2003
+++ llvm-test/SingleSource/UnitTests/2003-05-02-DependentPHI.c Wed Nov 9 12:08:08 2005
@@ -13,10 +13,11 @@
List Node5 = {&Node4, 0};
-void main() {
+int main() {
List *PrevL, *CurL;
for (PrevL = 0, CurL = &Node5; CurL; PrevL = CurL, CurL = CurL->Next) {
printf("%d %d\n", CurL->Data, PrevL ? PrevL->Data : -1);
}
+ return 0;
}
Index: llvm-test/SingleSource/UnitTests/2003-07-08-BitOpsTest.c
diff -u llvm-test/SingleSource/UnitTests/2003-07-08-BitOpsTest.c:1.1 llvm-test/SingleSource/UnitTests/2003-07-08-BitOpsTest.c:1.2
--- llvm-test/SingleSource/UnitTests/2003-07-08-BitOpsTest.c:1.1 Tue Jul 29 15:24:56 2003
+++ llvm-test/SingleSource/UnitTests/2003-07-08-BitOpsTest.c Wed Nov 9 12:08:08 2005
@@ -10,6 +10,7 @@
printf("%d %d %d %d %d\n", bxor, bor, band, bandnot, bornot);
}
-void main() {
+int main() {
test(7, 8, -5, 5);
+ return 0;
}
Index: llvm-test/SingleSource/UnitTests/printargs.c
diff -u llvm-test/SingleSource/UnitTests/printargs.c:1.2 llvm-test/SingleSource/UnitTests/printargs.c:1.3
--- llvm-test/SingleSource/UnitTests/printargs.c:1.2 Sun Mar 17 20:59:00 2002
+++ llvm-test/SingleSource/UnitTests/printargs.c Wed Nov 9 12:08:08 2005
@@ -2,9 +2,10 @@
int puts(const char *);
-void main(int argc, char **argv) {
+int main(int argc, char **argv) {
int i;
printf("#Args = %d. They are:\n", argc-1);
for (i = 1; i < argc; ++i)
puts(argv[i]);
+ return 0;
}
Index: llvm-test/SingleSource/UnitTests/StructModifyTest.c
diff -u llvm-test/SingleSource/UnitTests/StructModifyTest.c:1.1 llvm-test/SingleSource/UnitTests/StructModifyTest.c:1.2
--- llvm-test/SingleSource/UnitTests/StructModifyTest.c:1.1 Thu Jan 16 16:58:09 2003
+++ llvm-test/SingleSource/UnitTests/StructModifyTest.c Wed Nov 9 12:08:08 2005
@@ -13,7 +13,7 @@
printf("%d, %f, %f, %lld\n", V->w, V->x, V->y, V->z);
}
-void main() {
+int main() {
S2Ty E;
E.A.w = 1;
E.A.x = 123.42f;
@@ -26,5 +26,6 @@
printS1(&E.A);
printS1(&E.B);
+ return 0;
}
More information about the llvm-commits
mailing list