Debian Codegraph @

gcc/testsuite/c-c++-common/gomp/lastprivate-conditional-4.c

raw
1 int x = 6, w = 8;
2 int bar (int);
3
4 void
5 foo ()
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 }