Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/c-c++-common/gomp/lastprivate-conditional-4.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
int x = 6, w = 8; int bar (int); void foo () { int y = 5, i; #pragma omp teams num_teams(1) firstprivate (x) shared (y) shared (w) { int z = 7; #pragma omp parallel for firstprivate (x, y, z, w) lastprivate (conditional: x, y, z, w) for (i = 0; i < 64; i++) if (bar (i)) { x = i; y = i + 1; z = i + 2; w = i + 3; } bar (y); bar (z); } }