OpenCores
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_59.f90] - Blame information for rev 414

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

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do run }
2
! PR41192 NAMELIST input with just a comment ("&NAME ! comment \") error
3
program cmdline
4
! comment by itself causes error in gfortran
5
   call process(' ')
6
   call process('i=10 , j=20 k=30 ! change all three values')
7
   call process(' ')
8
   call process('! change no values')! before patch this failed.
9
end program cmdline
10
 
11
subroutine process(string)
12
 implicit none
13
 character(len=*) :: string
14
 character(len=132) :: lines(3)
15
 character(len=255) :: message
16
 integer :: i=1,j=2,k=3
17
 integer ios
18
 namelist /cmd/ i,j,k
19
 save cmd
20
 lines(1)='&cmd'
21
 lines(2)=string
22
 lines(3)='/'
23
 
24
 read(lines,nml=cmd,iostat=ios,iomsg=message)
25
 if (ios.ne.0) call abort
26
end subroutine process

powered by: WebSVN 2.1.0

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