rt_gccstream/gcc/testsuite/gfortran.dg/allocatable_scalar_2.f90

12 lines
277 B
Fortran

! { dg-do compile }
! { dg-options "-std=f95" }
! Parsing of finalizer procedure definitions.
! While ALLOCATABLE scalars are not implemented, this even used to ICE.
! Thanks Tobias Burnus for the test!
integer, allocatable :: x ! { dg-error "may not be ALLOCATABLE" }
end