repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git]
/
sdcc
/
support
/
valdiag
/
tests
/
bug-895992.c
blob
24bf327dc149b7495e725521ca845a012fa0bc76
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