libgfortran/ChangeLog:
[official-gcc.git] / gcc / testsuite / gfortran.dg / namelist_3.f90
blob722b94027ce1a2e5a9ab030772b28a400864b65b
1 ! { dg-do compile }
2 ! { dg-options "-std=f95" }
3 ! Check that a pointer cannot be a member of a namelist
4 program namelist_3
5 integer,pointer :: x
6 allocate (x)
7 namelist /n/ x ! { dg-error "NAMELIST attribute with POINTER attribute" "" }
8 end program namelist_3