1 /* PR tree-optimization/90211 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target pthread } */
4 /* { dg-options "-O3 -fassociative-math -ftree-parallelize-loops=2 -fno-signed-zeros -fno-trapping-math -fno-tree-copy-prop" } */
5 
6 double
foo(int x)7 foo (int x)
8 {
9   double a, b = 0.0;
10   while (x < 3)
11     {
12       int c;
13       a = 0.0;
14       c = 0;
15       while (c < x)
16         {
17           a += 1.0;
18           ++c;
19         }
20       b += 1.0;
21       ++x;
22     }
23   return a + b;
24 }
25