Mercurial > hg > CbC > old > device
annotate test/enum.c @ 427:0c256ea2a97e
Bitfield left value for ia32
author | kono |
---|---|
date | Sat, 30 Oct 2004 18:49:25 +0900 |
parents | 427008a06333 |
children | 32737bad7489 |
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; | |
427 | 26 printf("#0025:%d %d %d\n",k,i,j); |
175 | 27 i = a2; |
427 | 28 printf("#0027:%d %d %d %d %d %d %d\n",a,b,a1,b1,d1,a2,i); |
185 | 29 return 0; |
175 | 30 } |