summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr34407.c
blob: 3da2ed7b3b380cc64e174ef88e9488c2294d3b6b (plain)
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" } } */