PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / gfortran.dg / data_char_3.f90
blob2ff3520474c2f924297a7c977baaea4101ec994e
1 ! { dg-do run }
2 ! { dg-options "-O2" }
3 ! Tests the fix PR29392, in which the iterator valued substring
4 ! reference would cause a segfault.
6 ! Contributed by Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8 character(LEN=2) :: a(2)
9 data ((a(I)(k:k),I=1,2),k=1,2) /2*'a',2*'z'/
10 IF (ANY(a.NE."az")) STOP 1
11 END