2015-05-20 12:24:19 +08:00
|
|
|
// RUN: %clang_cc1 -fopenmp -verify -DFOPENMP -o - %s
|
2013-03-22 14:34:35 +08:00
|
|
|
// RUN: %clang_cc1 -verify -o - %s
|
2017-12-30 01:36:15 +08:00
|
|
|
|
2018-05-22 00:40:32 +08:00
|
|
|
// RUN: %clang_cc1 -fopenmp-simd -verify -o - %s
|
|
|
|
// RUN: %clang_cc1 -fopenmp-simd -fopenmp-version=45 -verify -o - %s
|
2019-08-07 22:02:11 +08:00
|
|
|
// RUN: %clang_cc1 -fopenmp-simd -fopenmp-version=50 -verify -o - %s
|
2013-03-22 14:34:35 +08:00
|
|
|
// expected-no-diagnostics
|
|
|
|
#ifdef FOPENMP
|
2015-05-20 12:24:19 +08:00
|
|
|
// -fopenmp option is specified
|
2013-03-22 14:34:35 +08:00
|
|
|
#ifndef _OPENMP
|
|
|
|
#error "No _OPENMP macro is defined with -fopenmp option"
|
2016-05-26 19:10:11 +08:00
|
|
|
#elsif _OPENMP != 201107
|
2013-03-22 14:34:35 +08:00
|
|
|
#error "_OPENMP has incorrect value"
|
|
|
|
#endif //_OPENMP
|
|
|
|
#else
|
2015-05-20 12:24:19 +08:00
|
|
|
// No -fopenmp 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
|
|
|
|
|