1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/* { dg-do compile } */ extern int ReadBlobByte (void); void ReadRLEImage (unsigned char *p) { unsigned char background_color[4] = { 0, 1, 2, 3 }; long j; unsigned long number_planes = ReadBlobByte(); for (j = 0; j < (long) number_planes; j++) *p++ = background_color[j]; } /* { dg-final { cleanup-tree-dump "vect" } } */