LLVM OpenMP
20.0.0git
runtime
test
api
omp_deprecated.c
Go to the documentation of this file.
1
// RUN: %libomp-compile && env KMP_WARNINGS=false %libomp-run 2>&1 | FileCheck %s
2
// The test checks that KMP_WARNINGS=false suppresses library warnings
3
4
#include <stdio.h>
5
#include <stdlib.h>
6
#include <omp.h>
7
int
main
(
int
argc,
char
** argv) {
8
omp_set_nested
(1);
9
if
(!omp_get_nested()) {
10
printf(
"error: omp_set_nested(1) failed\n"
);
11
return
1;
12
}
13
printf(
"passed\n"
);
14
return
0;
15
}
16
17
// CHECK-NOT: omp_set_nested routine deprecated
18
// CHECK-NOT: omp_get_nested routine deprecated
omp_set_nested
#define omp_set_nested
Definition:
kmp_stub.cpp:36
main
int main()
Definition:
test-touch.c:21
Generated on Wed Feb 5 2025 10:57:20 for LLVM OpenMP by
1.9.6