Index: openmp/trunk/libomptarget/test/offloading/offloading_success.c =================================================================== --- openmp/trunk/libomptarget/test/offloading/offloading_success.c +++ openmp/trunk/libomptarget/test/offloading/offloading_success.c @@ -9,7 +9,7 @@ int main(void) { int isHost = -1; -#pragma omp target +#pragma omp target map(from: isHost) { isHost = omp_is_initial_device(); } if (isHost < 0) { Index: openmp/trunk/libomptarget/test/offloading/offloading_success.cpp =================================================================== --- openmp/trunk/libomptarget/test/offloading/offloading_success.cpp +++ openmp/trunk/libomptarget/test/offloading/offloading_success.cpp @@ -9,7 +9,7 @@ int main(void) { int isHost = 0; -#pragma omp target +#pragma omp target map(from: isHost) { isHost = omp_is_initial_device(); } if (isHost < 0) {