struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug3366711.c
blob8e7ec7163ae1a3a96f37c80bca45b351c43c27fa
1 /*
2 bug 3366711
3 */
5 #include <testfwk.h>
7 void f(unsigned char c)
9 unsigned char __xdata * p = (unsigned char __xdata *)8;
10 p[3] = c ? 2 : 1; /* Old register allocator crashed in this assignment to a constant address. */
13 void
14 testBug (void)
16 ASSERT (1);