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 teams distribute parallel for map(mapper(id), tofrom : c)
22 for (int i
= 0; i
< NUM
; i
++) {
26 for (int i
= 0; i
< NUM
; i
++) {
30 printf("Sum = %d\n", sum
);