blob: aaf943f6294e365d98cad8cf18350c737f4c1a65 (
plain)
1
2
3
4
5
6
|
! { dg-do compile }
! PR 13201 we used to not give an error in those cases
subroutine foo(n)
integer, parameter :: a(n) = 1 ! { dg-error "cannot be automatic" "automatic shape" }
integer, parameter :: z(:) = (/ 1,2,3 /) ! { dg-error "cannot be automatic" "assumed shape" }
end subroutine
|