diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/openmp-define-3.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/openmp-define-3.f90 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/openmp-define-3.f90 b/gcc/testsuite/gfortran.dg/openmp-define-3.f90 new file mode 100644 index 00000000000..3d559864faf --- /dev/null +++ b/gcc/testsuite/gfortran.dg/openmp-define-3.f90 @@ -0,0 +1,11 @@ +! { dg-options "-cpp -fopenmp" } +! { dg-do preprocess } +! { dg-require-effective-target fopenmp } + +#ifndef _OPENMP +# error _OPENMP not defined +#endif + +#if _OPENMP != 201107 +# error _OPENMP defined to wrong value +#endif |