1 // RUN: %libomptarget-compilexx-run-and-check-generic
9 #pragma omp target map(from : isHost)
10 { isHost
= omp_is_initial_device(); }
13 printf("Runtime error, isHost=%d\n", isHost
);
16 // CHECK: Target region executed on the device
17 printf("Target region executed on the %s\n", isHost
? "host" : "device");