URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [data_char_3.f90] - Rev 154
Compare with Previous | Blame | View Log
! { 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