* gcc.target/i386/mpx/hard-reg-1-nov.c (mpx_test): Use "esp"
[official-gcc.git] / gcc / testsuite / gfortran.dg / namelist_3.f90
blobf37946d53c9f7d188365a6ace834335ce7cbbd6b
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