diff options
Diffstat (limited to 'gcc/testsuite/gfortran.fortran-torture/compile/mloc.f90')
-rw-r--r-- | gcc/testsuite/gfortran.fortran-torture/compile/mloc.f90 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.fortran-torture/compile/mloc.f90 b/gcc/testsuite/gfortran.fortran-torture/compile/mloc.f90 new file mode 100644 index 000000000..8d1d754f5 --- /dev/null +++ b/gcc/testsuite/gfortran.fortran-torture/compile/mloc.f90 @@ -0,0 +1,8 @@ +! from PR 14928 +! we used to not accept the two argument variant of MINLOC and MAXLOC when +! the MASK keyword was omitted. + real b(10) + integer c(1) + c = minloc(b,b<0) + c = maxloc(b,b>0) +end |