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/] [warn_implicit_procedure_1.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do compile }! { dg-options "-Wimplicit-procedure" }! PR fortran/22552! Check for correct -Wimplicit-procedure warnings.MODULE mCONTAINSSUBROUTINE my_sub ()END SUBROUTINE my_subINTEGER FUNCTION my_func ()my_func = 42END FUNCTION my_funcEND MODULE mSUBROUTINE test (proc)IMPLICIT NONECALL proc () ! { dg-bogus "is not explicitly declared" }END SUBROUTINE testPROGRAM mainUSE mEXTERNAL :: ext_subEXTERNAL :: testINTEGER :: ext_funcCALL ext_sub () ! { dg-bogus "is not explicitly declared" }PRINT *, ext_func () ! { dg-bogus "is not explicitly declared" }PRINT *, implicit_func () ! { dg-bogus "is not explicitly declared" }CALL my_sub () ! { dg-bogus "is not explicitly declared" }PRINT *, my_func () ! { dg-bogus "is not explicitly declared" }PRINT *, SIN (3.14159) ! { dg-bogus "is not explicitly declared" }CALL undef_sub (1, 2, 3) ! { dg-warning "is not explicitly declared" }! Can't check undefined function, because it needs to be declared a type! in any case (and the implicit type is enough to not trigger this warning).END PROGRAM! { dg-final { cleanup-modules "m" } }
