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
struct / union in initializer, RFE #901.
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
bug-3727.c
blob
d72118f74d4fff4da5c3c97d1da5045201484d47
1
/* bug-3727.c
2
?
3
*/
4
5
#include <testfwk.h>
6
7
typedef
unsigned char
u8
;
8
9
void
VDP_Poke_16K
(
u8 dest
);
10
11
int
bad
=
1
;
12
13
u8 n1
;
14
15
void
fake
(
void
)
16
{
17
n1
=
32
;
18
}
19
20
void
SatUpdate
(
void
)
21
{
22
n1
=
0
;
23
24
if
(
bad
)
25
{
26
for
(
u8 j
=
0
;
j
<
1
;
j
++)
27
{
28
fake
();
29
}
30
}
31
VDP_Poke_16K
(
2
*
n1
);
32
}
33
34
void
testBug
(
void
)
35
{
36
SatUpdate
();
37
}
38
39
40
void
VDP_Poke_16K
(
u8 dest
)
41
{
42
#if 0
// Bug not yet fixed
43
ASSERT
(
dest
);
44
#else
45
(
void
)
dest
;
46
#endif
47
}
48