URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 302 |
Rev 384 |
! { dg-do run }
|
! { dg-do run }
|
! PR36657 Namelist string constant immediately followed by comment
|
! PR36657 Namelist string constant immediately followed by comment
|
program gfcbug79
|
program gfcbug79
|
implicit none
|
implicit none
|
integer, parameter :: nnml = 10
|
integer, parameter :: nnml = 10
|
character(len=8) :: model = ""
|
character(len=8) :: model = ""
|
namelist /NML/ model
|
namelist /NML/ model
|
open (nnml, status="scratch")
|
open (nnml, status="scratch")
|
write(nnml,*) "&nml! This is a just comment"
|
write(nnml,*) "&nml! This is a just comment"
|
write(nnml,*) " model='foo'! This is a just comment"
|
write(nnml,*) " model='foo'! This is a just comment"
|
write(nnml,*) "/"
|
write(nnml,*) "/"
|
rewind(nnml)
|
rewind(nnml)
|
read (nnml, nml=NML)
|
read (nnml, nml=NML)
|
if (model /= 'foo') call abort
|
if (model /= 'foo') call abort
|
close(nnml)
|
close(nnml)
|
end program gfcbug79
|
end program gfcbug79
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.