Mercurial > hg > CbC > old > device
annotate test/enum.c @ 467:32737bad7489
fix list/tag interference
author | kono |
---|---|
date | Sat, 30 Jul 2005 16:01:45 +0900 |
parents | 0c256ea2a97e |
children | a379da780856 |
rev | line source |
---|---|
467 | 1 int printf(const char *format, ...); |
175 | 2 |
3 enum { | |
4 a,b,c | |
5 }; | |
6 | |
7 enum aho { | |
8 a1=3,b1,c1,d1 | |
9 }; | |
10 | |
11 enum aho j = c; | |
12 | |
13 const int a2=10; | |
14 | |
185 | 15 int |
175 | 16 main() |
17 { | |
18 enum aho i; | |
19 enum { | |
20 k=7 | |
21 }; | |
22 enum foo { | |
23 a1=-3,b1,c1 | |
24 }; | |
25 | |
26 i = a1; | |
427 | 27 printf("#0025:%d %d %d\n",k,i,j); |
175 | 28 i = a2; |
427 | 29 printf("#0027:%d %d %d %d %d %d %d\n",a,b,a1,b1,d1,a2,i); |
185 | 30 return 0; |
175 | 31 } |