summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr84321.c
blob: 8f8186b58f217de5b586895d0e925d9c20eb623d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O3 -fwrapv" } */

int c;

void
foo (int *a, int b)
{
  int e;
  if (b == 1)
    return;
  for (e = 0; e < (b & ~7); e += 8)
    ;
  for (++e; e < b;)
    c = a[e];
}