summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/charlen_13.f90
blob: d89b71c9dcb29a8db4308e6a81e07c9d60db258b (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
! PR fortran/69859
program p
   type t
      character(2), allocatable :: a(*) ! { dg-error "must have a deferred shape" }
      character(*), allocatable :: b(2) ! { dg-error "must have a deferred shape" }
      character(*), allocatable :: c(*) ! { dg-error "must have a deferred shape" }
   end type
end
! { dg-excess-errors "needs to be a constant specification" }