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/] [bounds_check_strlen_7.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do run }! { dg-options "-fbounds-check" }! { dg-shouldfail "Character length mismatch" }! PR fortran/37746! Test bounds-checking for string length of dummy arguments.MODULE mCONTAINSSUBROUTINE test (opt)IMPLICIT NONECHARACTER(len=5), OPTIONAL :: optEND SUBROUTINE testEND MODULE mPROGRAM mainUSE mIMPLICIT NONECALL test ('') ! 0 length, but not absent argument.END PROGRAM main! { dg-output "shorter than the declared one for dummy argument 'opt' \\(0/5\\)" }! { dg-final { cleanup-modules "m" } }
