struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-2252.c
blobc6a299f2299a7d370490034ddb4348f037a54cbe
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 */
5 #include <testfwk.h>
7 int abc(int a)
9 return a + 0xff;
12 void testBug(void)
14 ASSERT(abc(0) == 0xff);