2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / intrinsic_actual_4.f90
blob4ba4b79c72d09b3b1bfc2f094a2ef00384fb8fac
1 ! { dg-do run }
2 ! Tests the fix for PR27900, in which an ICE would be caused because
3 ! the actual argument LEN had no type.
5 ! Contributed by Klaus Ramstöck <klra67@freenet.de>
7 subroutine sub (proc, chr)
8 external proc
9 integer proc
10 character*(*) chr
11 if (proc (chr) .ne. 6) call abort ()
12 end subroutine sub
14 implicit none
15 integer i
16 i = len ("123")
17 call sub (len, "abcdef")
18 end