]>
git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/testsuite/libgomp.c/target-15.c
1 extern void abort (void);
6 int a
[10], b
[15], err
, i
;
7 for (i
= 0; i
< 10; i
++)
9 for (i
= 0; i
< 15; i
++)
11 #pragma omp target map(to:x[5:10], a[0:10], b[5:10]) map(from:err)
14 for (i
= 0; i
< 10; i
++)
15 if (x
[5 + i
] != 20 + 4 * i
17 || b
[5 + i
] != 40 + 8 * i
)
27 int a
[n
], b
[n
], c
[n
], d
[n
], e
[n
], err
, i
;
29 for (i
= 0; i
< n
; i
++)
35 #pragma omp target map(to:x[0][5:10], a[0:10], b[5:10]) map(from:err)
38 for (i
= 0; i
< 10; i
++)
39 if ((*x
)[5 + i
] != 20 + 4 * i
41 || b
[5 + i
] != 40 + 8 * i
)
46 for (i
= 0; i
< n
; i
++)
52 #pragma omp target map(to:x[0][v:v+5], a[v-5:v+5], b[v:v+5]) map(from:err)
55 for (i
= 0; i
< 10; i
++)
56 if ((*x
)[5 + i
] != 45 + 9 * i
58 || b
[5 + i
] != 65 + 13 * i
)
69 for (i
= 0; i
< 15; i
++)