1 // RUN: %clang_cc1 -fopenmp -verify -DFOPENMP -o - %s
2 // RUN: %clang_cc1 -verify -o - %s
3 // expected-no-diagnostics
4 #ifdef FOPENMP
5 // -fopenmp option is specified
6 #ifndef _OPENMP
7 #error "No _OPENMP macro is defined with -fopenmp option"
8 #elsif _OPENMP != 201107
9 #error "_OPENMP has incorrect value"
10 #endif //_OPENMP
11 #else
12 // No -fopenmp option is specified
13 #ifdef _OPENMP
14 #error "_OPENMP macro is defined without -fopenmp option"
15 #endif // _OPENMP
16 #endif // FOPENMP
17 
18