diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/namelist_3.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/namelist_3.f90 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/namelist_3.f90 b/gcc/testsuite/gfortran.dg/namelist_3.f90 new file mode 100644 index 000000000..722b94027 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/namelist_3.f90 @@ -0,0 +1,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 |