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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
467
32737bad7489 fix list/tag interference
kono
parents: 427
diff changeset
1 int printf(const char *format, ...);
175
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 enum {
kono
parents:
diff changeset
4 a,b,c
kono
parents:
diff changeset
5 };
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 enum aho {
kono
parents:
diff changeset
8 a1=3,b1,c1,d1
kono
parents:
diff changeset
9 };
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 enum aho j = c;
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 const int a2=10;
kono
parents:
diff changeset
14
185
427008a06333 comment
kono
parents: 175
diff changeset
15 int
175
kono
parents:
diff changeset
16 main()
kono
parents:
diff changeset
17 {
kono
parents:
diff changeset
18 enum aho i;
kono
parents:
diff changeset
19 enum {
kono
parents:
diff changeset
20 k=7
kono
parents:
diff changeset
21 };
kono
parents:
diff changeset
22 enum foo {
kono
parents:
diff changeset
23 a1=-3,b1,c1
kono
parents:
diff changeset
24 };
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 i = a1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 185
diff changeset
27 printf("#0025:%d %d %d\n",k,i,j);
175
kono
parents:
diff changeset
28 i = a2;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 185
diff changeset
29 printf("#0027:%d %d %d %d %d %d %d\n",a,b,a1,b1,d1,a2,i);
185
427008a06333 comment
kono
parents: 175
diff changeset
30 return 0;
175
kono
parents:
diff changeset
31 }