Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gfortran.dg / namelist_35.f90
blob531f636d5784cfc0921b7a8a620c11ee19a6f65a
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 "must not have assumed shape" }
11 end subroutine test