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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [namelist_41.f90] - Rev 694

Compare with Previous | Blame | View Log

! { dg-do run { target fd_truncate } }
! PR34291 Segfault on &end in namelist expanded read of character
  implicit none
  character(len=10), dimension(2)  :: var
  namelist /inx/ var
  var = "goodbye"
  open(unit=11, status='scratch')
  write (11, *) "&inx"
  write (11, *) "var(1)='hello'" 
  write (11, *) "&end"
  rewind (11)
  read(11,nml=inx)
  if (var(1) /= 'hello' .and. var(2) /= 'goodbye') call abort
  var = "goodbye"
  rewind (11)
  write (11, *) "$inx"
  write (11, *) "var(1)='hello'" 
  write (11, *) "$end"
  rewind (11)
  read(11,nml=inx)
  if (var(1) /= 'hello' .and. var(2) /= 'goodbye') call abort
end

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.