2007-01-31 Tobias Burnus <burnus@net-b.de>
PR fortran/27588
* gfortran.dg/char_bounds_check_fail_1.f90: Add test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121401
138bc75d-0d04-0410-961f-
82ee72b054a4
2007-01-31 Tobias Burnus <burnus@net-b.de>
+ PR fortran/27588
+ * gfortran.dg/char_bounds_check_fail_1.f90: Add test.
+
+2007-01-31 Tobias Burnus <burnus@net-b.de>
+
PR fortran/30520
* gfortran.dg/volatile8.f90: New argument conformance test.
* gfortran.dg/volatile9.f90: New scope test.
--- /dev/null
+! { dg-do run }
+! { dg-options "-fbounds-check" }
+! { dg-shouldfail "Substring out of bounds check" }
+! PR fortran/27588
+program bound_check
+ character*10 zz
+ i = 2
+ j = i+9
+ zz(i:j) = 'abcdef'
+ print * , zz
+ end
+! { dg-output "Substring out of bounds: upper bound exceeds string length.*at line 9)}