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-2228.c
blob
daf5a863a20f35ee646bff30cbaf535f5bfc6b9b
1
/*
2
bug-2228.c was broken by a missing notUsedFrom() test in z80 and r2k peepholes.
3
*/
4
5
#include <testfwk.h>
6
7
char
i
,
j
=
4
;
8
9
void
testBug
(
void
)
10
{
11
i
=
0
;
12
13
while
(
j
--)
14
i
= (
i
==
3
) ?
0
: (
i
+
1
);
15
16
ASSERT
(!
i
);
17
}
18