summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/data_char_3.f90
blob: 022ec5c12e7a1d210365f66d7dfbda4ec97c3657 (plain)
1
2
3
4
5
6
7
8
9
10
11
! { dg-do run }
! { dg-options "-O2" }
! Tests the fix PR29392, in which the iterator valued substring
! reference would cause a segfault.
!
! Contributed by Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>   
!
  character(LEN=2) :: a(2) 
  data ((a(I)(k:k),I=1,2),k=1,2) /2*'a',2*'z'/ 
  IF (ANY(a.NE."az")) CALL ABORT() 
  END