diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/intrinsic_actual_4.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/intrinsic_actual_4.f90 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/intrinsic_actual_4.f90 b/gcc/testsuite/gfortran.dg/intrinsic_actual_4.f90 new file mode 100644 index 000000000..4ba4b79c7 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/intrinsic_actual_4.f90 @@ -0,0 +1,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 |