OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [bounds_check_strlen_1.f90] - Blame information for rev 302

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do run }
2
! { dg-options "-fbounds-check" }
3
! { dg-shouldfail "Character length mismatch" }
4
 
5
! PR fortran/37746
6
! Test bounds-checking for string length of dummy arguments.
7
 
8
SUBROUTINE test (str)
9
  IMPLICIT NONE
10
  CHARACTER(len=5) :: str
11
END SUBROUTINE test
12
 
13
PROGRAM main
14
  IMPLICIT NONE
15
  CALL test ('abc') ! String is too short.
16
END PROGRAM main
17
 
18
! { dg-output "shorter than the declared one for dummy argument 'str' \\(3/5\\)" }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.