Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git] / sdcc / support / regression / tests / bug-2370.c
blob7820e155de145d86896318c58e73fd676e3c98d3
1 /*
2 bug-2370.c
3 --reserve-regs-iy register allocation issue.
4 */
6 #include <testfwk.h>
8 void *f(int n)
10 ASSERT(n == 10 * sizeof(int));
12 return 0;
15 int nblock;
16 int *tot;
18 void testBug(void)
20 int ndigit = 100;
22 if (nblock < 20) ndigit = 20;
24 nblock = ndigit / 2;
25 tot = (int *)f(nblock*sizeof(int));