[llvm-commits] CVS: llvm/test/Programs/SingleSource/UnitTests/2003-05-07-VarArgs.c
Chris Lattner
lattner at cs.uiuc.edu
Sun May 25 11:31:01 PDT 2003
Changes in directory llvm/test/Programs/SingleSource/UnitTests:
2003-05-07-VarArgs.c updated: 1.4 -> 1.5
---
Log message:
Uncomment out code, fix misleading comment.
---
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.4 llvm/test/Programs/SingleSource/UnitTests/2003-05-07-VarArgs.c:1.5
--- llvm/test/Programs/SingleSource/UnitTests/2003-05-07-VarArgs.c:1.4 Sun May 25 10:56:54 2003
+++ llvm/test/Programs/SingleSource/UnitTests/2003-05-07-VarArgs.c Sun May 25 11:30:15 2003
@@ -1,7 +1,7 @@
#include <stdio.h>
#include <stdarg.h>
-/* 5 bytes. */
+/* 8 bytes if alignon(int) is 4. */
typedef struct DWordS_struct { int i; char c; } DWordS;
/* 12 bytes if d is 4-byte aligned; 16 bytes if d is 8-byte aligned. */
@@ -47,17 +47,17 @@
printf("char %c\n", c);
break;
case 'D':
- /* dw = va_arg(ap, DWordS);
+ dw = va_arg(ap, DWordS);
printf("DWord { %d, %c }\n", dw.i, dw.c);
- */ break;
+ break;
case 'Q':
- /* qw = va_arg(ap, QuadWordS);
+ qw = va_arg(ap, QuadWordS);
printf("QuadWord { %d, %f }\n", qw.i, qw.d);
- */ break;
+ break;
case 'L':
- /* ls = va_arg(ap, LargeS);
+ ls = va_arg(ap, LargeS);
printf("LargeS { %d, %f, 0x%p, %d }\n", ls.i, ls.d, ls.ptr, ls.j);
- */ break;
+ break;
}
va_end(ap);
}
More information about the llvm-commits
mailing list