struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-3780.c
blob4af2f48762a33c07e6947330fd5891c69d2f0495
1 /* bug-3780.c
2 A bug in the conversion of multiplicative operators to support functions triggred an assertion.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma disable_warning 88
9 #endif
11 unsigned f( char* p ) {
12 return 7 * (unsigned long)p / 1234;
15 void testBug(void)
17 ASSERT(f((char *)176) == 0);
18 ASSERT(f((char *)177) == 1);