Debian Codegraph @

gcc/testsuite/gfortran.dg/coarray/substring_1.f90

raw
1 !{ dg-do run }
2
3 ! Test PR51815 is fixed
4 ! Contributed by Bill Long <longb ad cray dot com>
5
6 PROGRAM pr51815
7 implicit none
8 character(10) :: s[*]
9 character(18) :: d = 'ABCDEFGHIJKLMNOPQR'
10 integer :: img
11
12 img = this_image()
13 s = d(img:img+9)
14 if (img == 1 .and. s(2:4) /= 'BCD') stop 1
15 END PROGRAM
16