repo.or.cz
/
splint-patched.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Some consistency changes to library & headers flags.
[splint-patched.git]
/
test
/
UNUSED
/
dkf5kEnum.c
blob
3a88ba3718ec9f5908062e0d4e0e06b09a513ac2
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