1 /* Testing 'has_device_addr' clause on the target construct with reference. */
8 int *dpx = (int*)omp_target_alloc (sizeof(int), 0);
9 double *dpy = (double*)omp_target_alloc (sizeof(double), 0);
11 #pragma omp target is_device_ptr(dpx, dpy)
20 #pragma omp target has_device_addr(x, y)
26 #pragma omp target has_device_addr(y, x)
27 if (x != 24 || y != 25.7)
30 omp_target_free(dpx, 0);
31 omp_target_free(dpy, 0);