testsuite: Enrich tests with variants failing on the branch.
authorMikael Morin <mikael@gcc.gnu.org>
Sun, 16 Jan 2022 17:33:36 +0000 (18:33 +0100)
committerMikael Morin <mikael@gcc.gnu.org>
Sun, 16 Jan 2022 18:13:01 +0000 (19:13 +0100)
commit15630e6e9eb019477d1fc5c0966b43979e18ae18
treef98124a9873628363c8308367989a6462e7e2eb4
parenta78b1ab1df9ca44acc5638e8f9d0ae2e62bd65ed
testsuite: Enrich tests with variants failing on the branch.

Backporting the fix for pr103789 on the 11 branch revealed a lack of test
coverage for the tests provided with that fix.  Indeed, the tests use the KIND
argument of the respective intrinsics only with keyword arguments.
This adds variants with non-keyword arguments.

The tests enriched this way fail on the branch if the fix is cherry-picked
straightforwardly.  The fix will have to be tweaked slightly there.

PR fortran/103789
PR fortran/87711
PR fortran/97896

gcc/testsuite/ChangeLog:

* gfortran.dg/index_5.f90: Enrich test with usages of INDEX with
a non-keyword KIND argument.
* gfortran.dg/len_trim.f90: Same for LEN_TRIM.
* gfortran.dg/maskl_1.f90: Same for MASKL.
* gfortran.dg/maskr_1.f90: Same for MASKR.
* gfortran.dg/scan_3.f90: Same for SCAN.
* gfortran.dg/verify_3.f90: Same for VERIFY.
gcc/testsuite/gfortran.dg/index_5.f90
gcc/testsuite/gfortran.dg/len_trim.f90
gcc/testsuite/gfortran.dg/maskl_1.f90
gcc/testsuite/gfortran.dg/maskr_1.f90
gcc/testsuite/gfortran.dg/scan_3.f90
gcc/testsuite/gfortran.dg/verify_3.f90