git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5107
4a8a32a2-be11-0410-ad9d-
d568d2c75423
D (D_ACCUSE2_VERBOSE, (" ! Preserves A, so continue scanning\n"));
scan = next;
}
- else if (scan->next == NULL && bitVectnBitsOn (uses) == 1 && next != NULL)
+ /*else if (scan->next == NULL && bitVectnBitsOn (uses) == 1 && next != NULL)
{
if (next->prev == NULL)
{
D (D_ACCUSE2, (" + Dropping as last in list and next doesn't start a block\n"));
return;
}
- }
+ } /*This caused bug #1292721 */
else if (scan->next == NULL)
{
D (D_ACCUSE2, (" + Dropping as hit the end of the list\n"));
--- /dev/null
+/*
+ bugs 1292721.
+*/
+
+#include <testfwk.h>
+
+char bar(void)
+{
+ static char ret = 0;
+ if(!ret) {
+ ret = 1;
+ return(0);
+ }
+ return(1);
+}
+
+void
+testBug156270(void)
+{
+ char aa, bb;
+
+ aa = bar();
+
+ for (;;) {
+
+ bb = bar();
+
+ if (!bb)
+ break;
+
+ if (aa == 0)
+ return;
+
+ ASSERT(0);
+ }
+ ASSERT(0);
+}
+