2014-07-12 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / namelist_35.f90
blob9a2972de8c6280490a5af9aaa666de475c289c50
1 ! { dg-do compile }
2 ! { dg-options "-std=f95" }
4 ! PR fortran/31818 - accepts namelists with assumed-shape arrays
7 subroutine test(cha)
8 implicit none
9 character(len=10) :: cha(:)
10 namelist /z/ cha ! { dg-error "with assumed shape in namelist" }
11 end subroutine test