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-2252.c
blob
c6a299f2299a7d370490034ddb4348f037a54cbe
1
/*
2
bug-2252.c - the 0xff was seen as an 8-bit quantity, and thus the same as -1, resulting in the addition being replaced by a decrement.
3
*/
4
5
#include <testfwk.h>
6
7
int
abc
(
int
a
)
8
{
9
return
a
+
0xff
;
10
}
11
12
void
testBug
(
void
)
13
{
14
ASSERT
(
abc
(
0
) ==
0xff
);
15
}
16