summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/implicit_13.f90
blob: 9007259770fc2bd73c4aeec5159981e7065e255b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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