10 #pragma omp declare target
46 #pragma omp end declare target
53 /* Test 1: argument types: char to short. */
56 #pragma omp target map(tofrom : array[ : s])
58 for (char i
= 0; i
< s
; i
++)
62 for (int i
= 0; i
< s
; i
++)
63 assert (array
[i
] == foo (i
));
65 /* Test 2: argument address is taken. */
68 #pragma omp target map(tofrom : v)
73 /* Test 3: passing a structure as a function argument. */
75 struct Cube c
= {.x
= 1, .y
= 2, .z
= 3};
77 #pragma omp target map(to : r) map(from : c)