annotate gcc/testsuite/gfortran.dg/intrinsic_actual_4.f90 @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
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
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
11 if (proc (chr) .ne. 6) STOP 1
111
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
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
16 intrinsic len
111
kono
parents:
diff changeset
17 i = len ("123")
kono
parents:
diff changeset
18 call sub (len, "abcdef")
kono
parents:
diff changeset
19 end