avoid stack overflow
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 30 Oct 2001 20:40:14 +0000 (20:40 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 30 Oct 2001 20:40:14 +0000 (20:40 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1473 4a8a32a2-be11-0410-ad9d-d568d2c75423

support/regression/tests/staticinit.c

index e244d4978a855fd82db72f30ea50a902e5c8234c..6a2480f4bbed0180505ce5db11ef0e9c428c2805 100644 (file)
@@ -21,7 +21,7 @@ testSmallDense(void)
 }
 
 #ifdef __mcs51
-idata
+idata at 0xa0  /* leave space for the stack */
 #endif
 static {type} smallSparse[] = {
     1, 1, 1, 1, 1, 1, 1, 1, 1
@@ -42,7 +42,7 @@ testSmallSparse(void)
 }
 
 #ifdef __mcs51
-idata
+idata at 0xd0
 #endif
 static {type} smallSparseZero[] = {
     0, 0, 0, 0, 0, 0, 0, 0, 0