projects
/
debian
/
cc1111
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 2.9.0
[debian/cc1111]
/
support
/
valdiag
/
tests
/
bug-895992.c
1
2
/* bug-895992.c
3
4
Life Range problem with
5
- uninitialized variable
6
- loop
7
- conditional block
8
*/
9
10
#ifdef TEST1
11
char p0;
12
13
void wait (void);
14
15
void foo(void)
16
{
17
unsigned char number;
18
unsigned char start = 1;
19
unsigned char i;
20
21
do
22
{
23
for (i = 1; i > 0 ; i--)
24
wait();
25
if (start)
26
{
27
number = p0;
28
start = 0;
29
}
30
number--; /* WARNING(SDCC) */
31
}
32
while (number != 0);
33
}
34
#endif