1 // RUN: %libomptarget-compile-run-and-check-generic 2 3 #include <stdio.h> 4 5 int omp_get_num_procs(void); 6 main()7int main() { 8 int num_procs; 9 #pragma omp target map(from : num_procs) 10 { num_procs = omp_get_num_procs(); } 11 12 // CHECK: PASS 13 if (num_procs > 0) 14 printf("PASS\n"); 15 } 16