[memprof] Upgrade a unit test to MemProf Version 3 (#117063)
[llvm-project.git] / openmp / runtime / test / env / kmp_dispatch_buf_range.c
blobac0c48f9199fea9b91d2dcfd325dc202222cc0ce
1 // RUN: %libomp-compile
2 // RUN: env KMP_DISP_NUM_BUFFERS=0 %libomp-run 2>&1 | FileCheck --check-prefix=SMALL %s
3 // RUN: env KMP_DISP_NUM_BUFFERS=4097 %libomp-run 2>&1 | FileCheck --check-prefix=LARGE %s
4 // SMALL: OMP: Warning
5 // SMALL-SAME: KMP_DISP_NUM_BUFFERS
6 // SMALL-SAME: too small
7 // LARGE: OMP: Warning
8 // LARGE-SAME: KMP_DISP_NUM_BUFFERS
9 // LARGE-SAME: too large
10 #include <stdio.h>
11 #include <stdlib.h>
13 int main() {
14 int i;
15 #pragma omp parallel for
16 for (i = 0; i < 1000; i++) {}
17 return EXIT_SUCCESS;