aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr50827.c
blob: 5d258bfcf0a133e0d29b0e4ef5de23a3a7194203 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR debug/50827 */
/* { dg-do compile } */
/* { dg-options "-g -O2 -funroll-loops" } */

void
foo (int w, int x, int *y, int *z)
{
  float f;
  while (w--)
    {
      f = x;
      if (y)
	*y = (__INTPTR_TYPE__) y + w;
      if (z)
	*z = w;
    }
}