llvm-project/openmp/runtime/test/api/omp_display_env0.c
Joachim Protze ce0911b3e9 [OpenMP][Tests] Fix compiler warnings in OpenMP runtime tests
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
2020-11-11 20:13:21 +01:00

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