Debian Codegraph @

gcc/testsuite/gfortran.dg/transfer_check_6.f90

raw
1 ! { dg-do compile }
2 ! PR fortran/104227 - ICE virtual memory exhausted
3 ! Contributed by G.Steinmetz
4
5 program p
6 type t
7 end type
8 type(t) :: x(2)
9 print *, transfer(1, x) ! { dg-error "shall not have storage size 0" }
10 x = transfer(1, x) ! { dg-error "shall not have storage size 0" }
11 end