13 for (int i = 0; i < N; i++)
17 void incr_with_this (int c)
19 #pragma omp target map(this->array[:N])
20 for (int i = 0; i < N; i++)
24 void incr_without_this (int c)
26 #pragma omp target map(array[:N])
27 for (int i = 0; i < N; i++)
31 void incr_implicit (int c)
34 for (int i = 0; i < N; i++)
40 for (int i = 0; i < N; i++)
41 assert (array[i] == c);
46 main (int argc, char *argv[])
53 m.incr_without_this (5);