Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/substr_alloc_string_comp_1.f90 @ 128:fe568345ddd5
fix CbC-example
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 19:32:28 +0900 |
parents | 04ced10e8804 |
children | 84e7813d76e9 |
line wrap: on
line source
! { dg-do run } ! PR fortran/65766 ! Substrings of allocatable string components of derived types program substr_derived_alloc_comp implicit none type t1 character(len=:), allocatable :: s end type t1 character(len=*), parameter :: c = & "0123456789abcdefghijklmnopqrstuvwxyz" type(t1) x1 integer i x1%s = c do i = 1, 36 if (x1%s(i:) .ne. c(i:)) call abort end do end program