summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr45733.c
blob: 5c83cd42ca5eddc659290eb9eba624c333bc8106 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-O -fstrict-overflow -ftree-vectorize" } */

typedef __INTPTR_TYPE__ intptr_t;

intptr_t
foo (void **p, int i)
{
  intptr_t x = 0;
  while (i--)
    x ^= (intptr_t) p[i];
  return x;
}