From: Frieder F. <fri...@we...> - 2006-12-18 08:37:31
|
Hi Jan, Jan Waclawek schrieb: > Is this an error or just me being stupid? It's a bug - please file a bug report about it. The bug can be reproduced within the regression test suite with the code below: ---------8<----------------------------------------- /** bugxxxxxxx.c */ #include <testfwk.h> #if defined(SDCC) && !defined(SDCC_z80) # define XDATA __xdata #else # define XDATA #endif XDATA unsigned char *px; XDATA unsigned char x[3] = {0x80,0x81,0x82}; unsigned char t; void incrementpx(void) { px++; } void testMe(void) { px = x; if (px == x) { incrementpx(); t = *px; } else { t = *px; } ASSERT(t == 0x81); } |