]> andersk Git - splint.git/blob - test/dkf5kEnum.c
Remove unused cpplib_createDefinition.
[splint.git] / test / dkf5kEnum.c
1 /* dkf5k */
2 #include <stdlib.h>
3
4  
5 int main()
6
7
8   typedef enum 
9     {
10       apple,
11       pear, 
12       grapefruit
13     } fruits;
14   register int i;
15
16   int array[grapefruit+1];
17   array[apple] = 24;
18   array[pear] = 10;
19   for(i=0; i <= 1; i++)
20     {
21       printf("%i\n", array[i]);
22     }
23   return 0;
24 }
25
26
27
28
29
30
31
This page took 0.036578 seconds and 5 git commands to generate.