Mercurial > hg > CbC > old > device
changeset 575:a4445cb1aa91
Example filex.
author | kono |
---|---|
date | Sat, 14 Jan 2006 01:00:05 +0900 |
parents | aad312f61654 |
children | 00e5ce0e341a |
files | Changes Makefile test/conv1.c test/offset.c test/regargs.c test/simp1.c test/switch.c test/tmp1.c test/too-long-argument.c test/tstdarg.c |
diffstat | 10 files changed, 36 insertions(+), 24 deletions(-) [+] |
line wrap: on
line diff
--- a/Changes Fri Jan 13 18:37:05 2006 +0900 +++ b/Changes Sat Jan 14 01:00:05 2006 +0900 @@ -8292,4 +8292,12 @@ global_table で参照される可能性がある。global に 置いてもいいんじゃないの? - +もともと global に置いていたが、decl_data の関係で +mode を入れ換えているうちに、間違えてしまった +みたいだね。あとは、inmode が甘かったので、 +global heap に残すものをあまり気にしてなかった +みたい。 + + + +
--- a/Makefile Fri Jan 13 18:37:05 2006 +0900 +++ b/Makefile Sat Jan 14 01:00:05 2006 +0900 @@ -81,7 +81,8 @@ make check TARGET=test/tmp12 make check TARGET=test/tmp5 make check TARGET=test/tmp7 - make check TARGET=test/tmp8 + make check TARGET=test/tmp7 + make check-inline TARGET=test/tmp8 make check TARGET=test/tmp9 make check TARGET=test/enum make check TARGET=test/obsf
--- a/test/conv1.c Fri Jan 13 18:37:05 2006 +0900 +++ b/test/conv1.c Sat Jan 14 01:00:05 2006 +0900 @@ -219,6 +219,7 @@ goto f2_1(233,sp); #endif } +return 0; } /* end */
--- a/test/offset.c Fri Jan 13 18:37:05 2006 +0900 +++ b/test/offset.c Sat Jan 14 01:00:05 2006 +0900 @@ -101,7 +101,7 @@ for(p=midium;p<&midium[BIT12];p++) *p = p-midium; for(p=large;p<&large[BIT16];p++) *p = p-large; - +return 0; } int
--- a/test/regargs.c Fri Jan 13 18:37:05 2006 +0900 +++ b/test/regargs.c Sat Jan 14 01:00:05 2006 +0900 @@ -1,19 +1,19 @@ int printf(const char *format, ...); -int +void arg1(int a1,int a2,int a3,int a4) { printf("#0006:%d %d %d %d\n",a1,a2,a3,a4); } -int +void arg0(int a1,int a2,int a3,int a4) { arg1(0,1,2,3); printf("#0013:%d %d %d %d\n",a1,a2,a3,a4); } - +int main() { arg0(0,1,2,3);
--- a/test/simp1.c Fri Jan 13 18:37:05 2006 +0900 +++ b/test/simp1.c Sat Jan 14 01:00:05 2006 +0900 @@ -45,7 +45,7 @@ } -int +void i0() { int a,b,c; @@ -56,7 +56,7 @@ printf("#0055:int: %d\n",c); } -int +void g() { float a,b,c; @@ -67,7 +67,7 @@ printf("#0066:float: %g\n",c); } -int +void h() { double a,b,c; @@ -78,7 +78,7 @@ printf("#0077:double: %g\n",c); } -int +void h1() { long long a,b,c; @@ -89,7 +89,7 @@ printf("#0088:long long: %lld\n",c); } -int +void c1() { char a,b,c; @@ -100,7 +100,7 @@ printf("#0099:char: %d\n",c); } -int +void s1() { short a,b,c; @@ -110,7 +110,7 @@ c = s(a*3,b*c,b+c,b/c,b-c); printf("#0110:short: %d\n",c); } - +int main() { i0();
--- a/test/switch.c Fri Jan 13 18:37:05 2006 +0900 +++ b/test/switch.c Sat Jan 14 01:00:05 2006 +0900 @@ -1,10 +1,10 @@ #include <stdio.h> -int main1(int i); -int main2(int i); -int main3(int i); -int main4(int i); -int main5(int i); +void main1(int i); +void main2(int i); +void main3(int i); +void main4(int i); +void main5(int i); int main(int ac,char *av[]) { @@ -18,7 +18,7 @@ } return 0; } -int +void main1(int i) { switch(i) { @@ -405,7 +405,7 @@ case 399: printf("#0404:case 1 399\n"); break; } } -int +void main2(int i) { switch(i) { @@ -733,7 +733,7 @@ default: printf("#0732:default 2 %d\n",i); break; } } -int +void main3(int i) { switch(i) { @@ -1124,7 +1124,7 @@ case 10299: printf("#1123:case 3 10299\n"); break; } } -int +void main4(int i) { switch(i) { @@ -1233,7 +1233,7 @@ case 79: printf("#1232:case 4 79\n"); break; } } -int +void main5(int r) { int i,j,k;
--- a/test/tmp1.c Fri Jan 13 18:37:05 2006 +0900 +++ b/test/tmp1.c Sat Jan 14 01:00:05 2006 +0900 @@ -82,6 +82,7 @@ printf("#0081:main continue.\n"); main0(0,av); printf("#0083:main end.\n"); +return 0; } /* end */