Debian Codegraph @

gcc/testsuite/gfortran.dg/coarray_47.f90

raw
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=single" }
3 !
4 ! Contributed by G Steinmetz <[email protected]>
5 !
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