Debian Codegraph @

gcc/testsuite/gfortran.dg/structure_constructor_15.f90

raw
1 ! { dg-do compile }
2 ! PR 85083
3 !
4 ! Testcase from PR by G. Steinmetz <[email protected]>
5 !
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