summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/namelist_3.f90
blob: 722b94027ce1a2e5a9ab030772b28a400864b65b (plain)
1
2
3
4
5
6
7
8
! { dg-do compile }
! { dg-options "-std=f95" }
! Check that a pointer cannot be a member of a namelist
program namelist_3
  integer,pointer :: x
  allocate (x)
  namelist /n/ x ! { dg-error "NAMELIST attribute with POINTER attribute" "" }
end program namelist_3