3 ! Code originally contributed by Gerhard Steinmetz
5 logical :: back
= .true
.
6 integer :: x(1) = findloc([1, 2, 1], '1', back
=back
) ! { dg-error "must be in type conformance" }
13 logical :: back
= .false
.
14 integer :: x(1) = findloc([1, 2, 1], t(), back
=back
) ! { dg-error "must be of intrinsic type" }
19 character(4) :: c
= '1234'
20 integer :: x(1) = findloc([1, 2, 1], c
, back
=.true
.) ! { dg-error "must be in type conformance" }