AArch64: correct constraint on Upl early clobber alternatives
[official-gcc.git] / gcc / testsuite / gfortran.dg / structure_constructor_12.f90
blobaa7e91d96e6eae262ccf607931cc3b39432a11ab
1 ! { dg-do compile }
3 ! PR fortran/64943
5 ! Contributed Dominique d'Humieres
7 type :: Test
8 integer :: i
9 end type
11 type :: TestReference
12 class(Test), allocatable :: test(:)
13 end type
14 print *, TestReference([Test(99), Test(199)]) ! { dg-error "Data transfer element at .1. cannot have ALLOCATABLE components unless it is processed by a defined input/output procedure" }
15 end