summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/parameter_save.f90
blob: ea34ea7291a022f227b88a75143a454a880b0b88 (plain)
1
2
3
4
5
6
! { dg-do compile }
! PR 20848 - parameter and save should conflict.
  integer, parameter, save :: x=0 ! { dg-error "conflicts" }
  integer, save :: y 
  parameter (y=42)   ! { dg-error "conflicts" }
end