mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 17:36:36 +00:00

This patch allows to pass the OpenMP runtime tests after configuring with `cmake . -DOPENMP_TEST_FLAGS:STRING="-Werror"`. The warnings for OMPT tests are addressed in D90752. Differential Revision: https://reviews.llvm.org/D91280
15 lines
327 B
C
15 lines
327 B
C
// RUN: %libomp-compile-and-run 2>&1 | FileCheck %s
|
|
// RUN: %libomp-cxx-compile-c && %libomp-run 2>&1 | FileCheck %s
|
|
#include <stdio.h>
|
|
#include <omp.h>
|
|
int main()
|
|
{
|
|
omp_display_env(0);
|
|
printf("passed\n");
|
|
return 0;
|
|
}
|
|
|
|
// CHECK: OPENMP DISPLAY ENVIRONMENT BEGIN
|
|
// CHECK: _OPENMP
|
|
// CHECK: OPENMP DISPLAY ENVIRONMENT END
|