c: Fix up pointer types to may_alias structures [PR114493]
[official-gcc.git] / gcc / testsuite / gfortran.dg / transfer_check_6.f90
blobdffd0913f0dce86d2ad296b7a613e458f1c1b06b
1 ! { dg-do compile }
2 ! PR fortran/104227 - ICE virtual memory exhausted
3 ! Contributed by G.Steinmetz
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