tree-optimization/113385 - wrong loop father with early exit vectorization
[official-gcc.git] / gcc / testsuite / gfortran.dg / substr_alloc_string_comp_1.f90
blob5b1921d5d1a44fdb5898c4b41e63810258296e42
1 ! { dg-do run }
2 ! PR fortran/65766
3 ! Substrings of allocatable string components of derived types
4 program substr_derived_alloc_comp
5 implicit none
7 type t1
8 character(len=:), allocatable :: s
9 end type t1
11 character(len=*), parameter :: c = &
12 "0123456789abcdefghijklmnopqrstuvwxyz"
14 type(t1) x1
16 integer i
18 x1%s = c
20 do i = 1, 36
21 if (x1%s(i:) .ne. c(i:)) STOP 1
22 end do
23 end program