1 // RUN: %libomptarget-compilexx-run-and-check-aarch64-unknown-linux-gnu
2 // RUN: %libomptarget-compilexx-run-and-check-powerpc64-ibm-linux-gnu
3 // RUN: %libomptarget-compilexx-run-and-check-powerpc64le-ibm-linux-gnu
4 // RUN: %libomptarget-compilexx-run-and-check-x86_64-pc-linux-gnu
5 // RUN: %libomptarget-compilexx-run-and-check-nvptx64-nvidia-cuda
27 short arr1
[10] = {10, 11, 12, 13, 14, 15, 16, 17, 18, 19};
28 short arr2
[10] = {20, 31, 22, 23, 24, 25, 26, 27, 28, 29};
31 c1
[0].b
.a
= (short *)arr1
;
32 c1
[1].b
.a
= (short *)arr2
;
39 printf("%d %ld %p %p %p %p\n", dvb1
.c
[0].b
.a
[0], dvb1
.c
[0].b
.d1
, &dvb1
,
40 &dvb1
.c
[0], &dvb1
.c
[0].b
, &dvb1
.c
[0].b
.a
[0]);
41 #pragma omp target map(to : dvb1, dvb1.c[0 : 2]) \
42 map(tofrom : dvb1.c[0].b.a[0 : 10], dvb1.c[1].b.a[0 : 10])
45 printf("%d %ld %p %p %p %p\n", dvb1
.c
[0].b
.a
[0], dvb1
.c
[0].b
.d1
, &dvb1
,
46 &dvb1
.c
[0], &dvb1
.c
[0].b
, &dvb1
.c
[0].b
.a
[0]);
47 dvb1
.c
[0].b
.a
[0] = 333;
51 printf("%d %ld %p %p %p %p\n", dvb1
.c
[0].b
.a
[0], dvb1
.c
[0].b
.d1
, &dvb1
,
52 &dvb1
.c
[0], &dvb1
.c
[0].b
, &dvb1
.c
[0].b
.a
[0]);