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-1493710.c
blob
ab5991d9ade9282593d88a8323adcae8d22d1773
1
/*
2
bug-1493710.c
3
4
cse
5
findPointerSet with signed/unsigned operands
6
*/
7
8
#include <testfwk.h>
9
10
struct
11
{
12
unsigned char
a
;
13
}
st
= {
0xff
};
14
15
signed char
c
= -
1
;
16
17
unsigned char
f
(
void
)
18
{
19
st
.
a
+=
c
;
20
return
st
.
a
>
8
;
21
}
22
23
void
24
testFindPointerSet
(
void
)
25
{
26
ASSERT
(
f
() ==
1
);
27
}