Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / openmp / runtime / test / api / has_openmp.c
blobda95f595fb9d431a71750c85292a6ad284ce1bdb
1 // RUN: %libomp-compile-and-run
2 #include <stdio.h>
3 #include <stdlib.h>
4 #include "omp_testsuite.h"
6 int test_has_openmp()
8 int rvalue = 0;
9 #ifdef _OPENMP
10 rvalue = 1;
11 #endif
12 return (rvalue);
15 int main()
17 int i;
18 int num_failed=0;
19 if(!test_has_openmp()) {
20 num_failed++;
22 return num_failed;