f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
33 lines
934 B
C
33 lines
934 B
C
// RUN: %clang_cc1 -fopenmp -verify -DFOPENMP -o - %s
|
|
// RUN: %clang_cc1 -verify -o - %s
|
|
// expected-no-diagnostics
|
|
#ifdef FOPENMP
|
|
// -fopenmp option is specified
|
|
#ifndef _OPENMP
|
|
#error "No _OPENMP macro is defined with -fopenmp option"
|
|
#elsif _OPENMP != 201107
|
|
#error "_OPENMP has incorrect value"
|
|
#endif //_OPENMP
|
|
#else
|
|
// No -fopenmp option is specified
|
|
#ifdef _OPENMP
|
|
#error "_OPENMP macro is defined without -fopenmp option"
|
|
#endif // _OPENMP
|
|
#endif // FOPENMP
|
|
|
|
// RUN: %clang_cc1 -fopenmp -verify -DFOPENMP -o - %s
|
|
// RUN: %clang_cc1 -verify -o - %s
|
|
// expected-no-diagnostics
|
|
#ifdef FOPENMP
|
|
// -fopenmp option is specified
|
|
#ifndef _OPENMP
|
|
#error "No _OPENMP macro is defined with -fopenmp option"
|
|
#elsif _OPENMP != 201107
|
|
#error "_OPENMP has incorrect value"
|
|
#endif // _OPENMP
|
|
#else
|
|
// No -fopenmp option is specified
|
|
#ifdef _OPENMP
|
|
#error "_OPENMP macro is defined without -fopenmp option"
|
|
#endif // _OPENMP
|
|
#endif // FOPENMP
|