2017-12-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gfortran.dg / data_char_3.f90
blob022ec5c12e7a1d210365f66d7dfbda4ec97c3657
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")) CALL ABORT()
11 END