OSDN Git Service

PR tree-optimization/51799
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr48975.c
1 /* PR tree-optimization/48975 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3 -ffast-math -fno-tree-slp-vectorize" } */
4
5 static int
6 foo (int x)
7 {
8   return (x > 0) ? 0 : x + 1;
9 }
10
11 void
12 bar (unsigned int x)
13 {
14   int l = 1;
15 lab:
16   while (x)
17     x = foo (x);
18 }