summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/sharing-3.c
blob: 36f72e3abb94cc7be324f2de863b5930b847caea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */

#define N       50
#define CHUNKSIZE   5

main ()
{
  int i, chunk;
  float c[N];

  chunk = CHUNKSIZE;
#pragma omp parallel for shared (c, chunk) schedule (dynamic, chunk)
  for (i = 0; i < N; i++)
    c[i] = i;

  return 0;
}