URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [pr17286.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do run }! PR17286! Namelist read failed when spaces exist between the '=' and the numbers! This is a libgfortran bug! Derived from testcase provided by Paul Thomas <paulthomas2@wanadoo.fr>program bug3integer num1 , num2 , num3 , num4data num3 / 42 /data num4 / 56 /namelist /mynml1/ num1,num2namelist /mynml2/ num3,num4logical dbgdata dbg / .FALSE. /open(unit=10,status='SCRATCH')write(10,'(A)') "&mynml1,num1= 16,num2=32,&end"!! write mynml2!write(10,mynml2)rewind(10)!! now read back!num1 = -1num2 = -1read(10,mynml1)if (num1.eq.16.and.num2.eq.32) thenif (dbg) write(*,mynml1)elseif (dbg) print *, 'expected 16 32 got ',num1,num2call abortendifnum3 = -1num4 = -1read(10,mynml2)if (num3.eq.42.and.num4.eq.56) thenif (dbg) write(*,mynml2)elseif (dbg) print *, 'expected 42 56 got ',num3,num4call abortendifclose(10)end
