2 ! { dg-do run { target fortran_real_10 } }
4 complex(kind
=10) :: a(6), b
, d(2,2)
5 logical :: m(6), n
, o(2,2)
7 a
= (/ 1., 2., 17., 2., 2., 6. /)
11 m
= (/ .true
., .false
., .true
., .true
., .true
., .true
. /)
18 d
= reshape((/ 1., 2., 2., 3. /), (/ 2, 2 /))
20 if (e(1) /= 2 .or
. e(2) /= 1) stop 4
21 o
= reshape((/ .true
., .false
., .true
., .true
. /), (/ 2, 2 /))
22 e
= findloc (d
, b
, 1, o
)
23 if (e(1) /= 0 .or
. e(2) /= 1) stop 5
24 e
= findloc (d
, b
, 1, n
)
25 if (e(1) /= 2 .or
. e(2) /= 1) stop 6
27 e
= findloc (d
, b
, 1, n
)
28 if (e(1) /= 0 .or
. e(2) /= 0) stop 7