brintos

brintos / llvm-project-archived public Read only

0
0
Text · 517 B · ac0c48f Raw
19 lines · c
1// RUN: %libomp-compile2// RUN: env KMP_DISP_NUM_BUFFERS=0 %libomp-run 2>&1 | FileCheck --check-prefix=SMALL %s3// RUN: env KMP_DISP_NUM_BUFFERS=4097 %libomp-run 2>&1 | FileCheck --check-prefix=LARGE %s4// SMALL: OMP: Warning5// SMALL-SAME: KMP_DISP_NUM_BUFFERS6// SMALL-SAME: too small7// LARGE: OMP: Warning8// LARGE-SAME: KMP_DISP_NUM_BUFFERS9// LARGE-SAME: too large10#include <stdio.h>11#include <stdlib.h>12 13int main() {14  int i;15  #pragma omp parallel for16  for (i = 0; i < 1000; i++) {}17  return EXIT_SUCCESS;18}19