c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / gomp / scan-3.c
blob4e290eb02dfdffeac8486008d8ec901173ca4755
1 int a, b;
3 void
4 f1 (int *c, int *d)
6 int i;
7 #pragma omp for reduction (inscan, +: a)
8 for (i = 0; i < 64; i++)
10 d[i] = a;
11 #pragma omp scan inclusive (a)
12 a += c[i];