2014-03-06 13:43:53 +08:00
|
|
|
// RUN: %clang_cc1 -fopenmp=libiomp5 -verify -DFOPENMP -o - %s
|
2013-03-22 14:34:35 +08:00
|
|
|
// RUN: %clang_cc1 -verify -o - %s
|
|
|
|
// expected-no-diagnostics
|
|
|
|
#ifdef FOPENMP
|
2014-03-06 13:43:53 +08:00
|
|
|
// -fopenmp=libiomp5 option is specified
|
2013-03-22 14:34:35 +08:00
|
|
|
#ifndef _OPENMP
|
|
|
|
#error "No _OPENMP macro is defined with -fopenmp option"
|
|
|
|
#elsif _OPENMP != 201107
|
|
|
|
#error "_OPENMP has incorrect value"
|
|
|
|
#endif //_OPENMP
|
|
|
|
#else
|
2014-03-06 13:43:53 +08:00
|
|
|
// No -fopenmp=libiomp5 option is specified
|
2013-03-22 14:34:35 +08:00
|
|
|
#ifdef _OPENMP
|
|
|
|
#error "_OPENMP macro is defined without -fopenmp option"
|
|
|
|
#endif // _OPENMP
|
|
|
|
#endif // FOPENMP
|
|
|
|
|
2014-03-06 13:43:53 +08:00
|
|
|
// RUN: %clang_cc1 -fopenmp=libiomp5 -verify -DFOPENMP -o - %s
|
2013-01-15 14:45:29 +08:00
|
|
|
// RUN: %clang_cc1 -verify -o - %s
|
|
|
|
// expected-no-diagnostics
|
|
|
|
#ifdef FOPENMP
|
2014-03-06 13:43:53 +08:00
|
|
|
// -fopenmp=libiomp5 option is specified
|
2013-01-15 14:45:29 +08:00
|
|
|
#ifndef _OPENMP
|
|
|
|
#error "No _OPENMP macro is defined with -fopenmp option"
|
|
|
|
#elsif _OPENMP != 201107
|
|
|
|
#error "_OPENMP has incorrect value"
|
2013-03-22 13:24:29 +08:00
|
|
|
#endif // _OPENMP
|
2013-01-15 14:45:29 +08:00
|
|
|
#else
|
2014-03-06 13:43:53 +08:00
|
|
|
// No -fopenmp=libiomp5 option is specified
|
2013-01-15 14:45:29 +08:00
|
|
|
#ifdef _OPENMP
|
|
|
|
#error "_OPENMP macro is defined without -fopenmp option"
|
|
|
|
#endif // _OPENMP
|
|
|
|
#endif // FOPENMP
|