2 ! { dg-options "-fcoarray=single" }
4 ! Contributed by Ian Harvey <ian_harvey@bigpond.com>
5 ! Extended by Andre Vehreschild <vehre@gcc.gnu.org>
6 ! to test that coarray references in allocate work now
14 class(foo), allocatable :: foobar[:]
15 class(foo), allocatable :: some_local_object
18 allocate(some_local_object, source=foobar)
20 if (.not. allocated(foobar)) STOP 1
21 if (.not. allocated(some_local_object)) STOP 2
23 deallocate(some_local_object)