PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / assumed_charlen_function_2.f90
blobbd7d713f91680b60ccdb4fc8f929a05a22e01c40
1 ! { dg-do compile }
2 ! Tests the fix for PR25416, which ICED in gfc_conv_function_call, when
3 ! treating SPREAD in the statement below.
5 ! Contributed by Ulrich Weigand <uweigand@gcc.gnu.org>
6 function bug(self,strvec) result(res)
7 character(*) :: self
8 character(*), dimension(:), intent(in) :: strvec
9 logical(kind=kind(.true.)) :: res
11 res = any(index(strvec,spread(self,1,size(strvec))) /= 0)
12 end function