re PR fortran/45710 (Adjust format and padding for WRITE of NAMELIST group to internal file)

2010-09-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/45710
	* gfortran.dg/namelist_65.f90: New test.

From-SVN: r164548
This commit is contained in:
Jerry DeLisle 2010-09-23 01:28:39 +00:00
parent 4363c7a151
commit 42d9f9dd0f
2 changed files with 27 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2010-09-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/45710
* gfortran.dg/namelist_65.f90: New test.
2010-09-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
* lib/scanasm.exp(dg-function-on-line): Permit .fnstart to appear in

View file

@ -0,0 +1,22 @@
! { dg-do run }
! { dg-options "-std=gnu" }
! PR45710 Adjust format/padding for WRITE of NAMELIST group to internal file
program oneline
real :: a=1,b=2,c=3,d=4
namelist /nl1/ a,b,c
parameter(ilines=5)
character(len=80) :: out(ilines)
! fill array out with @
do i=1,len(out)
out(:)(i:i)='@'
enddo
write(out,nl1)
if (out(1).ne."&NL1") call abort
if (out(2).ne." A= 1.0000000 ,") call abort
if (out(3).ne." B= 2.0000000 ,") call abort
if (out(4).ne." C= 3.0000000 ,") call abort
if (out(5).ne." /") call abort
end program oneline