tree-optimization/113385 - wrong loop father with early exit vectorization
[official-gcc.git] / gcc / testsuite / gfortran.dg / coarray / ptr_comp_3.f08
blobfca6d54a60fd398999a83adedb7732c69c5bf8aa
1 ! { dg-do run }
3 ! Contributed by Damian Rouson
4 ! Same like coarray/alloc_comp_4
6 program main
8   implicit none
10   type mytype
11     integer, pointer :: indices(:)
12   end type
14   type(mytype), save :: object[*]
15   integer :: me
17   me=this_image()
18   allocate(object%indices(me))
19   object%indices = 42
21   if ( any( object[me]%indices(:) /= 42 ) ) STOP 1
22 end program