Mercurial > hg > CbC > old > device
changeset 175:f4dcfb3e2c2c
test
author | kono |
---|---|
date | Wed, 26 Nov 2003 22:08:44 +0900 |
parents | 8b0ffe9b933d |
children | 3a7b45f62c66 |
files | test/enum.c |
diffstat | 1 files changed, 29 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/enum.c Wed Nov 26 22:08:44 2003 +0900 @@ -0,0 +1,29 @@ + +enum { + a,b,c +}; + +enum aho { + a1=3,b1,c1,d1 +}; + +enum aho j = c; + +const int a2=10; + + +main() +{ + enum aho i; + enum { + k=7 + }; + enum foo { + a1=-3,b1,c1 + }; + + i = a1; + printf("%d %d %d\n",k,i,j); + i = a2; + printf("%d %d %d %d %d %d %d\n",a,b,a1,b1,d1,a2,i); +}