LLVM OpenMP
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
10int main(void) {
11#pragma omp parallel
12 {
13 omp_get_thread_num();
14 }
15}
int main(void)