[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/2007-01-04-KNR-Args.c

Chris Lattner sabre at nondot.org
Thu Jan 4 15:23:24 PST 2007



Changes in directory llvm-test/SingleSource/UnitTests:

2007-01-04-KNR-Args.c added (r1.1)
---
Log message:

new testcase


---
Diffs of the changes:  (+19 -0)

 2007-01-04-KNR-Args.c |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+)


Index: llvm-test/SingleSource/UnitTests/2007-01-04-KNR-Args.c
diff -c /dev/null llvm-test/SingleSource/UnitTests/2007-01-04-KNR-Args.c:1.1
*** /dev/null	Thu Jan  4 17:23:19 2007
--- llvm-test/SingleSource/UnitTests/2007-01-04-KNR-Args.c	Thu Jan  4 17:23:08 2007
***************
*** 0 ****
--- 1,19 ----
+ #include <stdio.h>
+ 
+ p1 (c, f1, s, d1, i, f2, l, d2)
+ char c; float f1; short s; double d1; int i; float f2; long l; double d2;
+ {
+   printf("%c %f %d %f %d %f %d %f\n", c, f1, s, d1,i, f2, l, d2);
+ }
+ 
+ void p2 (char c, float f1, short s, double d1, int i, float f2, long l, double d2)
+ {
+   printf("%c %f %d %f %d %f %d %f\n", c, f1, s, d1,i, f2, l, d2);
+ }
+ 
+ int main(int argc, const char *argv[]) {
+   p1 ('a', 4.0, 1, 5.0, 2, 4.0, 3, 5.0);
+   p2 ('a', 4.0, 1, 5.0, 2, 4.0, 3, 5.0);
+   return 0;
+ }
+ 






More information about the llvm-commits mailing list