LLVM OpenMP
runtime
test
affinity
no_leak_with_disabled.c
Go to the documentation of this file.
1
// RUN: %libomp-compile -fopenmp
2
// RUN: %libomp-run
3
// RUN: env KMP_AFFINITY=disabled %libomp-run
4
5
// Check that no memory is leaked with KMP_AFFINITY=disabled.
6
// The detection is done by ASAN/LSAN.
7
8
#include <omp.h>
9
10
int
main
(
void
) {
11
#pragma omp parallel
12
{
13
omp_get_thread_num();
14
}
15
}
main
int main(void)
Definition
no_leak_with_disabled.c:10
Generated on
for LLVM OpenMP by
1.14.0