Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-980526-3.c
blob08db9771d8bf71d349df63e0ebe69cf184589e3e
1 /*
2 980526-3.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 int compare(unsigned int x, unsigned int y)
13 if (x==y)
14 return 0;
15 else
16 return 1;
19 void
20 testTortureExecute (void)
22 unsigned int i, j, k, l;
23 i = 5; j = 2; k=0; l=2;
24 if (compare(5%(~(unsigned) 2), i%~j)
25 || compare(0, k%~l))
26 ASSERT(0);
27 else
28 return;