OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [namelist_50.f90] - Rev 316

Go to most recent revision | Compare with Previous | Blame | View Log

! { dg-do run }
! PR36657 Namelist string constant immediately followed by comment
program gfcbug79
  implicit none
  integer, parameter :: nnml = 10
  character(len=8)  :: model = ""
  namelist /NML/       model
  open (nnml, status="scratch")
  write(nnml,*) "&nml! This is a just comment"
  write(nnml,*) "  model='foo'! This is a just comment"
  write(nnml,*) "/"
  rewind(nnml)
  read (nnml, nml=NML)
  if (model /= 'foo') call abort
  close(nnml)
end program gfcbug79

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.