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-divconst-3.c
blobba827d2376e77f786abc3a06cb6143118ae1591b
1 /*
2 divconst-3.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #ifndef __SDCC_pdk14 // Lack of memory
8 long long
9 f (long long x)
11 return x / 10000000000LL;
13 #endif
15 void
16 testTortureExecute (void)
18 #ifndef __SDCC_pdk14 // Lack of memory
19 #if !(defined (__SDCC_pdk15) && defined(__SDCC_STACK_AUTO)) // Lack of code memory
20 ASSERT (f (10000000000LL) == 1);
21 ASSERT (f (100000000000LL) == 10);
22 return;
23 #endif
24 #endif