aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr91665.c
blob: 6b69ea030b1c86e8fbd7f55b201bc41f1e76d3aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR tree-optimization/91665 */
/* { dg-do compile } */
/* { dg-additional-options "-Ofast" } */

short int v;

void
foo (short int x, short int y)
{
  short int *p = &v;

  x = 1;
  while (x != 0)
    x += ++y || (*p = x);
}