aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul-Antoine Arras <pa@codesourcery.com>2023-10-26 18:51:59 +0200
committerPaul-Antoine Arras <pa@codesourcery.com>2023-10-26 18:58:54 +0200
commitabd78dc61076120649ccc1ca0b1d74d0b0a22f81 (patch)
tree40328eff8f159549eaff6ff7fd02eca669124c93
parent3c8abcedaa1fa08083abad0dce574e46aefebb5b (diff)
downloadgcc-abd78dc61076120649ccc1ca0b1d74d0b0a22f81.zip
gcc-abd78dc61076120649ccc1ca0b1d74d0b0a22f81.tar.gz
gcc-abd78dc61076120649ccc1ca0b1d74d0b0a22f81.tar.bz2
Add effective target to OpenMP tests
This adds an effective target DejaGnu directive to prevent these testcases from failing on GCC configurations that do not support OpenMP. This fixes 8d2130a4e5c. gcc/testsuite/ChangeLog: * gfortran.dg/c_ptr_tests_20.f90: Add "fopenmp" effective target. * gfortran.dg/c_ptr_tests_21.f90: Add "fopenmp" effective target.
-rw-r--r--gcc/testsuite/gfortran.dg/c_ptr_tests_20.f901
-rw-r--r--gcc/testsuite/gfortran.dg/c_ptr_tests_21.f901
2 files changed, 2 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/c_ptr_tests_20.f90 b/gcc/testsuite/gfortran.dg/c_ptr_tests_20.f90
index 7dd5104..131603d3 100644
--- a/gcc/testsuite/gfortran.dg/c_ptr_tests_20.f90
+++ b/gcc/testsuite/gfortran.dg/c_ptr_tests_20.f90
@@ -1,4 +1,5 @@
! { dg-do compile }
+! { dg-require-effective-target fopenmp }
! { dg-additional-options "-fopenmp" }
!
! This failed to compile the declare variant directive due to the C_PTR
diff --git a/gcc/testsuite/gfortran.dg/c_ptr_tests_21.f90 b/gcc/testsuite/gfortran.dg/c_ptr_tests_21.f90
index 05ccb77..060d29d 100644
--- a/gcc/testsuite/gfortran.dg/c_ptr_tests_21.f90
+++ b/gcc/testsuite/gfortran.dg/c_ptr_tests_21.f90
@@ -1,4 +1,5 @@
! { dg-do compile }
+! { dg-require-effective-target fopenmp }
! { dg-additional-options "-fopenmp" }
!
! Ensure that C_PTR and C_FUNPTR are reported as incompatible types in variant