OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [namelist_45.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! PR35617 read namelist error with '!'
3
program test
4
  character(len=128) :: mhdpath
5
  namelist /nbdrive_naml/ mhdpath
6
  open(10, file='test.nml')
7
 
8
  write(10,'(a)') "&nbdrive_naml"
9
  write(10,'(a)')
10
  write(10,'(a)') "!nstep_stop = 2  ! uncomment to bar"
11
  write(10,'(a)') "!nstep_start = 2 ! uncomment to foo"
12
  write(10,'(a)') " mhdpath = 'mypath.dat'"
13
  write(10,'(a)') "/"
14
 
15
  rewind(10)
16
  read(10, nbdrive_naml)
17
  close(10,status="delete")
18
end program test

powered by: WebSVN 2.1.0

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