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>
12
13int main() {
14 int i;
15 #pragma omp parallel for
16 for (i = 0; i < 1000; i++) {}
17 return EXIT_SUCCESS;
18}
19

source code of openmp/runtime/test/env/kmp_dispatch_buf_range.c