blob: 4af2f48762a33c07e6947330fd5891c69d2f0495 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* bug-3780.c
A bug in the conversion of multiplicative operators to support functions triggred an assertion.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma disable_warning 88
#endif
unsigned f( char* p ) {
return 7 * (unsigned long)p / 1234;
}
void testBug(void)
{
ASSERT(f((char *)176) == 0);
ASSERT(f((char *)177) == 1);
}
|