c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / gomp / lastprivate-conditional-4.c
blobd87c7982b2693c4c72c38e950eee1aae609c2aed
1 int x = 6, w = 8;
2 int bar (int);
4 void
5 foo ()
7 int y = 5, i;
8 #pragma omp teams num_teams(1) firstprivate (x) shared (y) shared (w)
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))
15 x = i;
16 y = i + 1;
17 z = i + 2;
18 w = i + 3;
20 bar (y);
21 bar (z);