struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug3501942.c
blob65c9942dc54d0281b0ff944eee52d7527abb5732
1 /* bug3501942, an issue with operandsNotrelated() in peepholes for z80-related ports.
2 */
4 #include <testfwk.h>
5 #include <math.h>
7 int value;
9 int f(void)
11 return 1;
14 void g(void)
16 if (value = f()) /* Bug was triggered here. */
17 return;
20 void testBug(void)
22 value = 0;
23 g();
24 ASSERT (value == 1);