]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add effective target to OpenMP tests
authorPaul-Antoine Arras <pa@codesourcery.com>
Thu, 26 Oct 2023 16:51:59 +0000 (18:51 +0200)
committerPaul-Antoine Arras <pa@codesourcery.com>
Thu, 26 Oct 2023 16:58:54 +0000 (18:58 +0200)
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.

gcc/testsuite/gfortran.dg/c_ptr_tests_20.f90
gcc/testsuite/gfortran.dg/c_ptr_tests_21.f90

index 7dd510400f3242a27d15984c23272015d27d339f..131603d38197f0d07a87f62c7fd09bcddd6993e8 100644 (file)
@@ -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 
index 05ccb771eee84fadf1e3a4ce9132008f0688c536..060d29d02759cd45f80b6c20f227d57ee98fb47e 100644 (file)
@@ -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