view gcc/testsuite/gfortran.dg/implicit_13.f90 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { 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