3 /* Test multiple struct dereferences on one directive, and slices starting at
12 int main(int argc
, char* argv
[])
15 mystruct
*m
= (mystruct
*) malloc (sizeof (*m
));
18 m
->a
= (int *) malloc (N
* sizeof (int));
19 m
->b
= (int *) malloc (N
* sizeof (int));
20 m
->c
= (int *) malloc (N
* sizeof (int));
22 for (i
= 0; i
< N
; i
++)
29 for (int i
= 0; i
< 99; i
++)
32 #pragma acc parallel loop copy(m->a[0:N])
33 for (j
= 0; j
< N
; j
++)
35 #pragma acc parallel loop copy(m->b[0:N], m->c[5:N-10])
36 for (j
= 0; j
< N
; j
++)
39 if (j
> 5 && j
< N
- 5)
44 for (i
= 0; i
< N
; i
++)