struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug3299577.c
blob8e5250a7b3d05abb390360f3917bd4b2d31d8bd0
1 /*
2 bug 3299577
3 */
5 #include <testfwk.h>
7 void DoProc (signed char col, signed char row, unsigned char spr)
9 col;
10 spr;
11 ASSERT(row != 1);
14 unsigned char y;
16 void TheBug (void)
18 unsigned char i,j,n,spr=0;
19 for (j=0; j<=1; j++) {
20 for (n=1; n<=7; n++) {
21 for (i=2; i<=7; i++) {
22 DoProc(30, i*y, spr); // Here i*y == 1 every time
28 void
29 testBug(void)
31 y = 1;
32 TheBug();