Mercurial > hg > CbC > old > device
annotate test/enum.c @ 234:eccea7c904ee
float powerpc drexp done (?)
author | kono |
---|---|
date | Thu, 29 Apr 2004 19:40:43 +0900 |
parents | 427008a06333 |
children | 0c256ea2a97e |
rev | line source |
---|---|
175 | 1 |
2 enum { | |
3 a,b,c | |
4 }; | |
5 | |
6 enum aho { | |
7 a1=3,b1,c1,d1 | |
8 }; | |
9 | |
10 enum aho j = c; | |
11 | |
12 const int a2=10; | |
13 | |
185 | 14 int |
175 | 15 main() |
16 { | |
17 enum aho i; | |
18 enum { | |
19 k=7 | |
20 }; | |
21 enum foo { | |
22 a1=-3,b1,c1 | |
23 }; | |
24 | |
25 i = a1; | |
26 printf("%d %d %d\n",k,i,j); | |
27 i = a2; | |
28 printf("%d %d %d %d %d %d %d\n",a,b,a1,b1,d1,a2,i); | |
185 | 29 return 0; |
175 | 30 } |