brintos

brintos / llvm-project-archived public Read only

0
0
Text · 313 B · da95f59 Raw
24 lines · c
1// RUN: %libomp-compile-and-run2#include <stdio.h>3#include <stdlib.h>4#include "omp_testsuite.h"5 6int test_has_openmp()7{8  int rvalue = 0;9#ifdef _OPENMP10  rvalue = 1;11#endif12  return (rvalue);13}14 15int main()16{17  int i;18  int num_failed=0;19  if(!test_has_openmp()) {20    num_failed++;21  }22  return num_failed;23}24