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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [namelist_empty.f90] - Blame information for rev 193

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

Line No. Rev Author Line
1 149 jeremybenn
! pr24584, segfault on namelist reading an empty string
2
! Contributed by Jerry DeLisle  
3
      implicit none
4
      character*20   temp
5
      character(len=10) var
6
      namelist /input/ var
7
      var = 'Howdy'
8
      open(unit=7, status="scratch")
9
      temp = '   var='''''  ! var='' in the file
10
      write(7,'(A6)') '&INPUT'
11
      write(7,'(A10)') temp
12
      write(7,'(A1)') '/'
13
      rewind(7)
14
      read(7,NML=input)
15
      close(7)
16
      if (var.ne.'') call abort
17
      end

powered by: WebSVN 2.1.0

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