blob: d6ab853c340b0656332bedfcd477e9d1451e1e1d [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"
Alexey Bataev08f85392013-03-22 05:24:29 +000010#endif // _OPENMP
Douglas Gregor50a70cd2013-01-15 06:45:29 +000011#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