* sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
[fw/sdcc] / support / regression / tests / stacks.c
index 51942cbd2d182e07118d499fcf448c59ce93d6d7..036f9d0aaeb655e56425a6423d2cd5dbfdf41b53 100644 (file)
@@ -20,7 +20,11 @@ testStack(void)
 {
   volatile char above;
   volatile char above2;
+#ifndef __mcs51
   volatile char ac[{size}];
+#else
+  volatile char ac[{size} - 100];
+#endif
   volatile char below;
   volatile char * volatile p;