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/] [interface_23.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do compile }!! This tests the fix for PR36325, which corrected for the fact that a! specific or generic INTERFACE statement implies the EXTERNAL attibute.!! Contributed by Janus Weil <janus@gcc.gnu.org>module ainterfacesubroutine fooend subroutineend interfaceexternal foo ! { dg-error "Duplicate EXTERNAL attribute" }end modulemodule binterfacefunction sin (x)real :: sin, xend functionend interfaceintrinsic sin ! { dg-error "EXTERNAL attribute conflicts with INTRINSIC attribute" }end module! argument checking was not done for external procedures with explicit interfaceprogram cinterfacesubroutine bar(x)real :: xend subroutineend interfacecall bar() ! { dg-error "Missing actual argument" }end program! { dg-final { cleanup-modules "a b" } }
