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 8d2130a4e5.

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.
This commit is contained in:
Paul-Antoine Arras 2023-10-26 18:51:59 +02:00
parent 3c8abcedaa
commit abd78dc610
2 changed files with 2 additions and 0 deletions

View 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

View 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