aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr48975.c
blob: 58658d8714927b750fe38e6ce3bbab1c77525503 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR tree-optimization/48975 */
/* { dg-do compile } */
/* { dg-options "-O3 -ffast-math -fno-tree-slp-vectorize" } */

static int
foo (int x)
{
  return (x > 0) ? 0 : x + 1;
}

void
bar (unsigned int x)
{
  int l = 1;
lab:
  while (x)
    x = foo (x);
}