diff options
author | Jakub Jelinek <jakub@redhat.com> | 2025-03-26 14:41:15 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2025-03-26 14:41:15 +0100 |
commit | d402a3911d5eeb4680397458aa31dad4c3f5136e (patch) | |
tree | 4c16b4da5a7d8528bcd03bc32d08df52d6049383 /gcc | |
parent | 3b36e96b575b493a21510c877b273608113108ed (diff) | |
download | gcc-d402a3911d5eeb4680397458aa31dad4c3f5136e.zip gcc-d402a3911d5eeb4680397458aa31dad4c3f5136e.tar.gz gcc-d402a3911d5eeb4680397458aa31dad4c3f5136e.tar.bz2 |
testsuite: Fix up append-args-interop.f90 test
The gcc/testsuite/*/gomp/ tests aren't compiled with include or module
paths pointing to libgomp, so shouldn't be using omp.h nor use omp_lib
etc.
The following patch adjusts the test to define it locally, like
e.g. recently in interop-5.f90 test or many other tests which have
their own definitions of types or enumerators they need.
2025-03-26 Jakub Jelinek <jakub@redhat.com>
* gfortran.dg/gomp/append-args-interop.f90: Don't use omp_lib,
instead use iso_c_binding and define omp_interop_kind parameter
locally.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gfortran.dg/gomp/append-args-interop.f90 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/gfortran.dg/gomp/append-args-interop.f90 b/gcc/testsuite/gfortran.dg/gomp/append-args-interop.f90 index 11a0f01..f2c4d97 100644 --- a/gcc/testsuite/gfortran.dg/gomp/append-args-interop.f90 +++ b/gcc/testsuite/gfortran.dg/gomp/append-args-interop.f90 @@ -6,7 +6,8 @@ ! append_args clause. module m - use omp_lib, only: omp_interop_kind + use iso_c_binding, only: c_intptr_t + integer, parameter :: omp_interop_kind = c_intptr_t contains subroutine g(x,y,z) integer(omp_interop_kind) :: x, y, z |