PR ipa/83051
[official-gcc.git] / gcc / testsuite / gfortran.dg / allocate_error_7.f90
blobf1c8bc3db643a08ce6a74f3ee8f106e7fec55c5b
1 ! { dg-do compile }
3 ! Code contributed by Gerhard Steinmetz
5 program pr82620
6 type t(a)
7 integer, len :: a
8 end type
9 type(t(:)), allocatable :: x, y
10 allocate(t(4) :: x)
11 allocate)t(7) :: y) ! { dg-error "Syntax error in ALLOCATE" }
12 end program pr82620