summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/intrinsic_actual_4.f90
blob: 4ba4b79c72d09b3b1bfc2f094a2ef00384fb8fac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
! { dg-do run }
! Tests the fix for PR27900, in which an ICE would be caused because
! the actual argument LEN had no type.
!
! Contributed by Klaus Ramst�ck <klra67@freenet.de>
!
      subroutine sub (proc, chr)
      external proc
      integer proc
      character*(*) chr
      if (proc (chr) .ne. 6) call abort ()
      end subroutine sub

      implicit none
      integer i
      i = len ("123")
      call sub (len, "abcdef")
      end