Mercurial > hg > CbC > old > device
comparison test/basic.c @ 96:7d8de41390d8
*** empty log message ***
author | kono |
---|---|
date | Thu, 13 Mar 2003 22:48:57 +0900 |
parents | 917947ffeb7c |
children | 6d42fcac07af |
comparison
equal
deleted
inserted
replaced
95:185d2cc6a3a9 | 96:7d8de41390d8 |
---|---|
24 i=c; | 24 i=c; |
25 printf("%d %d %d\n",!i,~i,-i); | 25 printf("%d %d %d\n",!i,~i,-i); |
26 printf("%d\n",i); | 26 printf("%d\n",i); |
27 } | 27 } |
28 | 28 |
29 int | |
30 g( | |
31 int a0,int a1,int a2,int a3,int a4,int a5,int a6,int a7,int a8 | |
32 ) | |
33 { | |
34 printf("g: %d\n", | |
35 a0+a1+a2+a3+a4+a5+a6+a7+a8 | |
36 ); | |
37 return a8; | |
38 } | |
39 | |
40 double | |
41 f( | |
42 double a0,double a1,double a2,double a3,double a4,double a5,double a6,double a7,double a8 | |
43 ) | |
44 { | |
45 printf("g: %g\n", | |
46 a0+a1+a2+a3+a4+a5+a6+a7+a8 | |
47 ); | |
48 return a8; | |
49 } | |
50 | |
29 void | 51 void |
30 tmp1 () { | 52 tmp1 () { |
53 | |
54 g(g(0,1,2,3,4,5,6,7,0), | |
55 g(0,1,2,3,4,5,6,7,1), | |
56 g(0,1,2,3,4,5,6,7,2), | |
57 g(0,1,2,3,4,5,6,7,3), | |
58 g(0,1,2,3,4,5,6,7,4), | |
59 g(0,1,2,3,4,5,6,7,5), | |
60 g(0,1,2,3,4,5,6,7,6), | |
61 g(0,1,2,3,4,5,6,7,6), | |
62 g(0,1,2,3,4,5,6,7,7)); | |
63 f(f(0,1,2,3,4,5,6,7,0), | |
64 f(0,1,2,3,4,5,6,7,1), | |
65 f(0,1,2,3,4,5,6,7,2), | |
66 f(0,1,2,3,4,5,6,7,3), | |
67 f(0,1,2,3,4,5,6,7,4), | |
68 f(0,1,2,3,4,5,6,7,5), | |
69 f(0,1,2,3,4,5,6,7,6), | |
70 f(0,1,2,3,4,5,6,7,6), | |
71 f(0,1,2,3,4,5,6,7,7)); | |
31 | 72 |
32 printf("%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d \n", | 73 printf("%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d \n", |
33 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49 | 74 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49 |
34 ); | 75 ); |
35 printf("%g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g \n", | 76 printf("%g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g \n", |