Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/autopar/pr90211.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
line wrap: on
line source
/* PR tree-optimization/90211 */ /* { dg-do compile } */ /* { dg-require-effective-target pthread } */ /* { dg-options "-O3 -fassociative-math -ftree-parallelize-loops=2 -fno-signed-zeros -fno-trapping-math -fno-tree-copy-prop" } */ double foo (int x) { double a, b = 0.0; while (x < 3) { int c; a = 0.0; c = 0; while (c < x) { a += 1.0; ++c; } b += 1.0; ++x; } return a + b; }