blob: e18c3d26d4c225730ab0d93c37e4ff05bfcd5ce1 [file] [log] [blame]
Douglas Gregor50a70cd2013-01-15 06:45:29 +00001// 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