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/] [namelist_38.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do run }! PR33253 namelist: reading back a string, also fixed writing with delimiters.! Test case modified from that of the PR by! Jerry DeLisle <jvdelisle@gcc.gnu.org>program mainimplicit nonecharacter(len=3) :: anamelist /foo/ aopen(10, status="scratch", delim="quote")a = 'a"a'write(10,foo)rewind 10a = ""read (10,foo) ! This gave a runtime error before the patch.if (a.ne.'a"a') call abortclose (10)open(10, status="scratch", delim="apostrophe")a = "a'a"write(10,foo)rewind 10a = ""read (10,foo)if (a.ne."a'a") call abortclose (10)open(10, status="scratch", delim="none")a = "a'a"write(10,foo)rewind 10a = ""read (10,foo)if (a.ne."a'a") call abortclose (10)end program main
