Debian Codegraph @

gcc/testsuite/gfortran.dg/data_char_3.f90

raw
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.
5 !
6 ! Contributed by Francois-Xavier Coudert <[email protected]>
7 !
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