re PR fortran/78741 (ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1534)
[official-gcc.git] / gcc / testsuite / gfortran.dg / namelist_57.f90
bloba72b866d575f4835630583c828cc7978b9cce976
1 ! { dg-do run }
2 ! PR37294 Namelist I/O to array character internal units.
3 ! Test case from adapted from PR by Jerry DeLisle <jvdelisle@gcc.gnu.org>
4 character(30) :: line(3)
5 namelist /stuff/ n
6 n = 123
7 line = ""
8 write(line,nml=stuff)
9 if (line(1) .ne. "&STUFF") STOP 1
10 if (line(2) .ne. " N=123 ,") STOP 2
11 if (line(3) .ne. " /") STOP 3
12 end