]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/c-c++-common/gomp/lastprivate-conditional-4.c
Merge branch 'master' into devel/modula-2.
[gcc.git] / gcc / testsuite / c-c++-common / gomp / lastprivate-conditional-4.c
CommitLineData
7e47198b
JJ
1int x = 6, w = 8;
2int bar (int);
3
4void
5foo ()
6{
7 int y = 5, i;
8 #pragma omp teams num_teams(1) firstprivate (x) shared (y) shared (w)
9 {
10 int z = 7;
11 #pragma omp parallel for firstprivate (x, y, z, w) lastprivate (conditional: x, y, z, w)
12 for (i = 0; i < 64; i++)
13 if (bar (i))
14 {
15 x = i;
16 y = i + 1;
17 z = i + 2;
18 w = i + 3;
19 }
20 bar (y);
21 bar (z);
22 }
23}
This page took 1.7539 seconds and 5 git commands to generate.