1 // RUN: %libomptarget-compile-run-and-check-generic
13 #pragma omp declare mapper(id : C s) map(s.a[0 : NUM])
17 c
.a
= (int *)malloc(sizeof(int) * NUM
);
18 for (int i
= 0; i
< NUM
; i
++) {
21 #pragma omp target data map(mapper(id), tofrom : c)
23 #pragma omp target teams distribute parallel for
24 for (int i
= 0; i
< NUM
; i
++) {
29 for (int i
= 0; i
< NUM
; i
++) {
33 printf("Sum = %d\n", sum
);