aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr95978.f90
blob: 47bd7067096343711320b5d1fe2cd8686b859288 (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
! PR fortran/95978 - ICE in gfc_match_data, at fortran/decl.c:731

program p
  type t
     integer :: a
     type(t), allocatable :: b
     data c /t(1)/               ! { dg-error "Unexpected DATA statement" }
  end type t
end