summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr39529.c
blob: 4853c13503f1544e36a34104a77c37d559d64cf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile } */

void
foo (void)
{
  char a[1024];
  char *p = &a[0];
  char *p2;

  p2 = p + 1024;
  do
    {
      p += 2;
      *(p-2) = 1;
      *(p-1) = 1;
    } while (p < p2);
}

/* { dg-final { cleanup-tree-dump "vect" } } */