* config/arm/arm.c (arm_reorg): Skip Thumb reorg pass for thunks.
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / host_data-4.c
blob0ab5a3569127cfef2c51a333dfa3107912ae0e42
1 /* { dg-do run { target openacc_nvidia_accel_selected } } */
3 #include <openacc.h>
4 #include <stdlib.h>
6 #define N 1024
8 int main (int argc, char* argv[])
10 int x[N], *xp2;
12 #pragma acc data copyin (x[0:N])
14 int *xp;
15 #pragma acc host_data use_device (x)
17 #pragma acc data
19 xp = x;
21 xp2 = x;
24 if (xp != acc_deviceptr (x) || xp2 != xp)
25 abort ();
28 return 0;