OSDN Git Service

2011-08-18 Tobias Burnus <burnus@net-b.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gfortran.dg / assumed_charlen_function_2.f90
1 ! { dg-do compile }\r
2 ! Tests the fix for PR25416, which ICED in gfc_conv_function_call, when\r
3 ! treating SPREAD in the statement below.\r
4 !\r
5 ! Contributed by Ulrich Weigand  <uweigand@gcc.gnu.org>\r
6 function bug(self,strvec) result(res)\r
7   character(*) :: self\r
8   character(*), dimension(:), intent(in) :: strvec\r
9   logical(kind=kind(.true.)) :: res\r
10 \r
11   res = any(index(strvec,spread(self,1,size(strvec))) /= 0)\r
12 end function\r
13 \r