diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/implicit_13.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/implicit_13.f90 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/implicit_13.f90 b/gcc/testsuite/gfortran.dg/implicit_13.f90 new file mode 100644 index 000000000..900725977 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/implicit_13.f90 @@ -0,0 +1,21 @@ +! { dg-do compile } + +! PR fortran/35770 +! Implicit declaration hides type of internal function. + +! Contributed by Dick Hendrickson <dick.hendrickson@gmail.com> + +IMPLICIT CHARACTER (s) +REAL :: RDA + +RDA = S_REAL_SQRT_I(42) ! { dg-bogus "Can't convert" } + +CONTAINS + +REAL FUNCTION S_REAL_SQRT_I(I) RESULT (R) + IMPLICIT NONE + INTEGER :: I + R = 0.0 +END FUNCTION S_REAL_SQRT_I + +END |