Debian Codegraph @

gcc/testsuite/gfortran.dg/transfer_simplify_15.f90

raw
1 ! { dg-do compile }
2 ! PR fortran/104311 - ICE out of memory
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,2) ! { dg-error "shall not have storage size 0" }
10 print *, transfer(1,x,huge(1)) ! { dg-error "shall not have storage size 0" }
11 end