diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/char_length_10.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/char_length_10.f90 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/char_length_10.f90 b/gcc/testsuite/gfortran.dg/char_length_10.f90 new file mode 100644 index 000000000..07f10df98 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/char_length_10.f90 @@ -0,0 +1,17 @@ +! { dg-do compile } +! Checks the fix for PR33241, in which the assumed character +! length of the parameter was never filled in with that of +! the initializer. +! +! Contributed by Victor Prosolin <victor.prosolin@gmail.com> +! +PROGRAM fptest
+ IMPLICIT NONE
+ CHARACTER (LEN=*), DIMENSION(1), PARAMETER :: var = 'a'
+ CALL parsef (var)
+contains
+ SUBROUTINE parsef (Var)
+ IMPLICIT NONE
+ CHARACTER (LEN=*), DIMENSION(:), INTENT(in) :: Var
+ END SUBROUTINE parsef
+END PROGRAM fptest
|