c: Fix up pointer types to may_alias structures [PR114493]
[official-gcc.git] / gcc / testsuite / gfortran.dg / structure_constructor_15.f90
blob583e3abafe1a2e7976ef25bfbd7e5bbda102f846
1 ! { dg-do compile }
2 ! PR 85083
4 ! Testcase from PR by G. Steinmetz <gscfq@t-online.de>
6 program p
7 type t
8 character(3) :: c
9 end type t
10 type(t), allocatable :: z
11 allocate (z, source=t(.true.,'abc')) ! { dg-error "Too many components" }
12 end