[llvm-commits] CVS: llvm/test/Programs/SingleSource/UnitTests/2003-05-07-VarArgs.c
Chris Lattner
lattner at cs.uiuc.edu
Fri May 30 17:07:03 PDT 2003
Changes in directory llvm/test/Programs/SingleSource/UnitTests:
2003-05-07-VarArgs.c updated: 1.7 -> 1.8
---
Log message:
Remove pointer printing and use of uninitialized structure
---
Diffs of the changes:
Index: llvm/test/Programs/SingleSource/UnitTests/2003-05-07-VarArgs.c
diff -u llvm/test/Programs/SingleSource/UnitTests/2003-05-07-VarArgs.c:1.7 llvm/test/Programs/SingleSource/UnitTests/2003-05-07-VarArgs.c:1.8
--- llvm/test/Programs/SingleSource/UnitTests/2003-05-07-VarArgs.c:1.7 Fri May 30 15:11:06 2003
+++ llvm/test/Programs/SingleSource/UnitTests/2003-05-07-VarArgs.c Fri May 30 17:06:05 2003
@@ -56,7 +56,7 @@
break;
case 'L':
ls = va_arg(ap, LargeS);
- printf("LargeS { %d, %f, 0x%p, %d }\n", ls.i, ls.d, ls.ptr, ls.j);
+ printf("LargeS { %d, %f, 0x%d, %d }\n", ls.i, ls.d, ls.ptr != 0, ls.j);
break;
}
va_end(ap);
@@ -64,7 +64,6 @@
int main() {
DWordS dw = { 18, 'a' };
- DWordS dw2;
QuadWordS qw = { 19, 20.0 };
LargeS ls = { 21, 22.0, &dw, 23 };
@@ -74,7 +73,7 @@
test("ddil", 1.0, 2.0f, (short)32764, 12345677823423LL);
/* test passing structs by value to varargs */
- test("DQL", dw2, qw, ls);
+ test("DQL", dw, qw, ls);
return 0;
}
More information about the llvm-commits
mailing list