Debian Codegraph @

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

raw
1 ! { dg-do run }
2 !
3 ! Allocatable scalar corrays were mishandled (ICE)
4 !
5 type t
6 integer, allocatable :: caf[:]
7 end type t
8 type(t) :: a
9 allocate (a%caf[3:*])
10 a%caf = 7
11 if (a%caf /= 7) STOP 1
12 if (any (lcobound (a%caf) /= [ 3 ]) &
13 .or. ucobound (a%caf, dim=1) /= num_images ()+2) &
14 STOP 2
15 deallocate (a%caf)
16 end