LLVM OpenMP
20.0.0git
runtime
test
api
has_openmp.c
Go to the documentation of this file.
1
// RUN: %libomp-compile-and-run
2
#include <stdio.h>
3
#include <stdlib.h>
4
#include "
omp_testsuite.h
"
5
6
int
test_has_openmp
()
7
{
8
int
rvalue = 0;
9
#ifdef _OPENMP
10
rvalue = 1;
11
#endif
12
return
(rvalue);
13
}
14
15
int
main
()
16
{
17
int
i
;
18
int
num_failed=0;
19
if
(!
test_has_openmp
()) {
20
num_failed++;
21
}
22
return
num_failed;
23
}
test_has_openmp
int test_has_openmp()
Definition:
has_openmp.c:6
main
int main()
Definition:
has_openmp.c:15
i
#define i
Definition:
kmp_stub.cpp:87
omp_testsuite.h
Generated on Wed Feb 5 2025 10:57:20 for LLVM OpenMP by
1.9.6