summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/namelist_1.f90
blob: 8ca28dc96ab22791f0988b73db0be77968eb0c9a (plain)
1
2
3
4
5
6
7
! { dg-do compile }
! Check that private entities in public namelists are rejected
module namelist_1
  public
  integer,private :: x
  namelist /n/ x ! { dg-error "cannot be member of PUBLIC namelist" }
end module