Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/namelist_44.f90 @ 120:f93fa5091070
fix conv1.c
author | mir3636 |
---|---|
date | Thu, 08 Mar 2018 14:53:42 +0900 |
parents | 04ced10e8804 |
children | 84e7813d76e9 |
line wrap: on
line source
! { dg-do run } ! ! PR fortran/34530 ! ! Skipping over comment line was not working ! ! Test case contributed by Harald Anlauf. ! program gfcbug77 implicit none character(len=128) :: file = "" logical :: default namelist /BLACKLIST/ file, default integer, parameter :: nnml = 10 default = .true. open (nnml, file='gfcbug77.nml') write(nnml,*) "&blacklist " ! The trailing space breaks gfortran write(nnml,*) " ! This is a comment within the namelist" write(nnml,*) " file = 'myfile'" write(nnml,*) " default = F" write(nnml,*) "/" rewind(nnml) read (nnml, nml=BLACKLIST) close(nnml,status="delete") if(file /= "myfile" .or. default) call abort() ! write (*,nml=BLACKLIST) end program gfcbug77