2018-03-02 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / coarray_47.f90
blobad83920fca50cf6494f12c084d30e9dd331871ad
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=single" }
4 ! Contributed by G Steinmetz <gscfq@t-online.de>
6 program p
7 type t
8 integer, allocatable :: t
9 end type
10 type(t) :: x
11 print *, transfer(1, x) ! { dg-error "cannot have ALLOCATABLE components" }
12 end