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-2710.c
blob
a1f407e2abe57c1c9f59e1b60ec298bfac273fc2
1
/*
2
bug1-2195.c
3
4
frontend couldn't handle the addition to void * used in comparison.
5
*/
6
7
#include <testfwk.h>
8
9
void
f
(
void
*
b
,
unsigned
j
)
10
{
11
unsigned char
*
i
=
b
;
12
i
<=
b
+
j
;
13
}
14
15
void
testBug
(
void
)
16
{
17
f
(
0
,
0
);
18
}
19