summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr83506.c
blob: b138c9d3ae71cba2ee27e4d03a0a4407dba488fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR ipa/83506 */
/* { dg-do compile { target pthread } } */
/* { dg-options "-O1 -ftree-parallelize-loops=2 -fno-ipa-pure-const" } */

unsigned int
foo (unsigned int x, int y)
{
  while (y < 1)
    {
      x *= 3;
      ++y;
    }
  return x;
}