brintos

brintos / llvm-project-archived public Read only

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