RISC-V: Refactor Dynamic LMUL codes
[official-gcc.git] / gcc / testsuite / gfortran.dg / minmaxloc_6.f90
blob9ac79be797df0b86b0b3473ef9edf5a4d8d74bdf
1 ! { dg-do run }
2 ! PR35994 [4.3/4.4 regression] MAXLOC and MINLOC off by one with mask
3 REAL DDA(5:104)
4 dda = (/(J1,J1=1,100)/)
6 IDS = MAXLOC(DDA,1)
7 if (ids.ne.100) STOP 1!expect 100
8 IDS = MAXLOC(DDA,1, (/(J1,J1=1,100)/) > 50)
9 if (ids.ne.100) STOP 2!expect 100
11 END