summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr19936_1.f90
blob: 516d5142922f5e14b4c77bc00883d5b4e6d7896d (plain)
1
2
3
4
5
! { dg-do compile }
program pr19936_1
  integer, parameter :: i=4
  print *,(/(i,i=1,4)/) ! { dg-error "assign to a named constant" }
end program pr19936_1