21 lines · c
1// RUN: %clang_cc1 -fopenmp -verify -DFOPENMP -o - %s2// RUN: %clang_cc1 -verify -o - %s3 4// RUN: %clang_cc1 -fopenmp-simd -verify -o - %s5// RUN: %clang_cc1 -fopenmp-simd -fopenmp-version=45 -verify -o - %s6// expected-no-diagnostics7#ifdef FOPENMP8// -fopenmp option is specified9#ifndef _OPENMP10#error "No _OPENMP macro is defined with -fopenmp option"11#elif _OPENMP != 20201112#error "_OPENMP has incorrect value"13#endif //_OPENMP14#else15// No -fopenmp option is specified16#ifdef _OPENMP17#error "_OPENMP macro is defined without -fopenmp option"18#endif // _OPENMP19#endif // FOPENMP20 21