Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/overload_2.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
! { dg-do compile } ! Test the fix for PR32157, in which overloading 'LEN', as ! in 'test' below would cause a compile error. ! ! Contributed by Michael Richmond <michael.a.richmond@nasa.gov> ! subroutine len(c) implicit none character :: c c = "X" end subroutine len subroutine test() implicit none character :: str external len call len(str) if(str /= "X") STOP 1 end subroutine test PROGRAM VAL implicit none external test intrinsic len call test() if(len(" ") /= 1) STOP 2 END