blob: f7f2924ce1a02d5f596c4533c93a7b9e201b69ee (
plain)
1
2
3
4
5
6
7
8
9
10
|
/* { dg-do compile } */
void
a1 (int n, float *a, float *b)
{
int i;
#pragma omp parallel for
for (i = 1; i < n; i++) /* i is private by default */
b[i] = (a[i] + a[i - 1]) / 2.0;
}
|