aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr107899.f90
blob: e47b57b7b91d6ac90b096a5e26f42d6c355ca46a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! { dg-do compile }
! { dg-options "-fcoarray=single" }
! PR fortran/107899 - ICE in resolve_deallocate_expr
! Contributed by G.Steinmetz

program p
  type t
  end type
  class(t), target :: x[:] ! { dg-error "deferred shape" }
  if (allocated (x)) then  ! { dg-error "must be ALLOCATABLE" }
     deallocate (x)        ! { dg-error "must be ALLOCATABLE or a POINTER" }
  end if
end