annotate test/enum.c @ 684:6e2f1e7f9fc3

*** empty log message ***
author kono
date Tue, 02 Oct 2007 21:18:12 +0900
parents a379da780856
children 5313ed059cee
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;
491
a379da780856 cond signed/unsigned
kono
parents: 467
diff changeset
27 printf("#0026:%d %d %d\n",k,i,j);
175
kono
parents:
diff changeset
28 i = a2;
491
a379da780856 cond signed/unsigned
kono
parents: 467
diff changeset
29 printf("#0028:%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 }