Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/intrinsic_actual_4.f90 @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 84e7813d76e9 |
children |
rev | line source |
---|---|
111 | 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. | |
4 ! | |
5 ! Contributed by Klaus Ramstöck <klra67@freenet.de> | |
6 ! | |
7 subroutine sub (proc, chr) | |
8 external proc | |
9 integer proc | |
10 character*(*) chr | |
131 | 11 if (proc (chr) .ne. 6) STOP 1 |
111 | 12 end subroutine sub |
13 | |
14 implicit none | |
15 integer i | |
131 | 16 intrinsic len |
111 | 17 i = len ("123") |
18 call sub (len, "abcdef") | |
19 end |