URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [overload_2.f90] - Rev 302
Compare with Previous | Blame | View Log
! { 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 nonecharacter :: cc = "X"end subroutine lensubroutine test()implicit nonecharacter :: strexternal lencall len(str)if(str /= "X") call abort()end subroutine testPROGRAM VALimplicit noneexternal testintrinsic lencall test()if(len(" ") /= 1) call abort()END
