mirror of
https://github.com/autc04/Retro68.git
synced 2024-09-28 18:56:06 +00:00
7 lines
304 B
Fortran
7 lines
304 B
Fortran
! { 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" "deferred shape" }
|
|
end subroutine
|