summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/initialization_17.f90
blob: c7b73b583df13b3e3e8e7a5602e1cea0b8ec71ab (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
!
! PR fortran/34514
!
! Initialization and typespec changes.
!
integer :: n = 5, m = 7
parameter (n = 42) ! { dg-error "Initializing already initialized variable" }
dimension :: m(3)  ! { dg-error "after its initialisation" } 
end