| 1 | // RUN: %libomptarget-compile-run-and-check-generic |
|---|---|
| 2 | |
| 3 | #include <stdio.h> |
| 4 | |
| 5 | int omp_get_num_procs(void); |
| 6 | |
| 7 | int 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(format: "PASS\n"); |
| 15 | } |
| 16 |
