annotate gcc/testsuite/gfortran.dg/intrinsic_actual_4.f90 @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do run }
kono
parents:
diff changeset
2 ! Tests the fix for PR27900, in which an ICE would be caused because
kono
parents:
diff changeset
3 ! the actual argument LEN had no type.
kono
parents:
diff changeset
4 !
kono
parents:
diff changeset
5 ! Contributed by Klaus Ramstöck <klra67@freenet.de>
kono
parents:
diff changeset
6 !
kono
parents:
diff changeset
7 subroutine sub (proc, chr)
kono
parents:
diff changeset
8 external proc
kono
parents:
diff changeset
9 integer proc
kono
parents:
diff changeset
10 character*(*) chr
kono
parents:
diff changeset
11 if (proc (chr) .ne. 6) call abort ()
kono
parents:
diff changeset
12 end subroutine sub
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 implicit none
kono
parents:
diff changeset
15 integer i
kono
parents:
diff changeset
16 i = len ("123")
kono
parents:
diff changeset
17 call sub (len, "abcdef")
kono
parents:
diff changeset
18 end