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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
175
kono
parents:
diff changeset
1
kono
parents:
diff changeset
2 enum {
kono
parents:
diff changeset
3 a,b,c
kono
parents:
diff changeset
4 };
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 enum aho {
kono
parents:
diff changeset
7 a1=3,b1,c1,d1
kono
parents:
diff changeset
8 };
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 enum aho j = c;
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 const int a2=10;
kono
parents:
diff changeset
13
185
427008a06333 comment
kono
parents: 175
diff changeset
14 int
175
kono
parents:
diff changeset
15 main()
kono
parents:
diff changeset
16 {
kono
parents:
diff changeset
17 enum aho i;
kono
parents:
diff changeset
18 enum {
kono
parents:
diff changeset
19 k=7
kono
parents:
diff changeset
20 };
kono
parents:
diff changeset
21 enum foo {
kono
parents:
diff changeset
22 a1=-3,b1,c1
kono
parents:
diff changeset
23 };
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 i = a1;
kono
parents:
diff changeset
26 printf("%d %d %d\n",k,i,j);
kono
parents:
diff changeset
27 i = a2;
kono
parents:
diff changeset
28 printf("%d %d %d %d %d %d %d\n",a,b,a1,b1,d1,a2,i);
185
427008a06333 comment
kono
parents: 175
diff changeset
29 return 0;
175
kono
parents:
diff changeset
30 }