tree-optimization/113385 - wrong loop father with early exit vectorization
[official-gcc.git] / gcc / testsuite / gfortran.dg / char_bounds_check_fail_1.f90
blob15d70215020158cbb2348231b21d59795b8efc27
1 ! { 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 "At line 10.*Substring out of bounds: upper bound \\(11\\) of 'zz' exceeds string length" }