PR c/29467
[official-gcc.git] / gcc / testsuite / gfortran.dg / shape_1.f90
blob9292adb2e71db2deaf945412a197b1d8687e14d0
1 ! { dg-do compile }
2 ! PR 13201 we used to not give an error in those cases
3 subroutine foo(n)
4 integer, parameter :: a(n) = 1 ! { dg-error "cannot be automatic" "automatic shape" }
5 integer, parameter :: z(:) = (/ 1,2,3 /) ! { dg-error "cannot be automatic" "deferred shape" }
6 end subroutine