]> git.ipfire.org Git - thirdparty/gcc.git/commit
fortran: Add tests covering inline MINLOC/MAXLOC with DIM [PR90608]
authorMikael Morin <mikael@gcc.gnu.org>
Thu, 16 Nov 2023 09:00:26 +0000 (10:00 +0100)
committerMikael Morin <mikael@gcc.gnu.org>
Tue, 19 Nov 2024 12:37:07 +0000 (13:37 +0100)
commit8aa254d7a5db5189ccd944b6ca1f5443726b058d
treec0fdc7e33043642823585d9833eaf0df48b4aafc
parent4bfae8a6f38d3075d4b1d9fc993c97729466bf66
fortran: Add tests covering inline MINLOC/MAXLOC with DIM [PR90608]

Add the tests covering the cases for which the following patches will
implement inline expansion of MINLOC and MAXLOC.  Those are cases where the
DIM argument is a constant value, and the ARRAY argument has rank greater
than 1.

PR fortran/90608

gcc/testsuite/ChangeLog:

* gfortran.dg/ieee/maxloc_nan_2.f90: New test.
* gfortran.dg/ieee/minloc_nan_2.f90: New test.
* gfortran.dg/maxloc_with_dim_1.f90: New test.
* gfortran.dg/maxloc_with_dim_and_mask_1.f90: New test.
* gfortran.dg/minloc_with_dim_1.f90: New test.
* gfortran.dg/minloc_with_dim_and_mask_1.f90: New test.
gcc/testsuite/gfortran.dg/ieee/maxloc_nan_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/ieee/minloc_nan_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/maxloc_with_dim_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/maxloc_with_dim_and_mask_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/minloc_with_dim_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/minloc_with_dim_and_mask_1.f90 [new file with mode: 0644]