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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [char_bounds_check_fail_1.f90] - Blame information for rev 384

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 "Substring out of bounds check" }
4
! PR fortran/27588
5
program bound_check
6
      character*10 zz
7
      i = 2
8
      j = i+9
9
      zz = ' '
10
      zz(i:j) = 'abcdef'
11
      print * , zz
12
      end
13
! { dg-output "Substring out of bounds: upper bound exceeds string length.*at line 9)}

powered by: WebSVN 2.1.0

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