Bump version to 19.1.0-rc3
[llvm-project.git] / offload / test / api / omp_get_num_procs.c
blobe958d0cf3492f68c642291ce0f32b69d5e9e32d1
1 // RUN: %libomptarget-compile-run-and-check-generic
3 #include <stdio.h>
5 int omp_get_num_procs(void);
7 int main() {
8 int num_procs;
9 #pragma omp target map(from : num_procs)
10 { num_procs = omp_get_num_procs(); }
12 // CHECK: PASS
13 if (num_procs > 0)
14 printf("PASS\n");