1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
/* bug-2370.c --reserve-regs-iy register allocation issue. */ #include <testfwk.h> void *f(int n) { ASSERT(n == 10 * sizeof(int)); return 0; } int nblock; int *tot; void testBug(void) { int ndigit = 100; if (nblock < 20) ndigit = 20; nblock = ndigit / 2; tot = (int *)f(nblock*sizeof(int)); }