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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

! { dg-do run }
!
! PR fortran/50109
!
! Contributed by Jim Hanson
!
      program namelist_test

      integer nfp
      namelist /indata/ nfp

      nfp = 99
      open(unit=4, status='scratch')
      write(4,'(a)') '$indata'
      write(4,'(a)') 'NFP = 5,'
      write(4,'(a)') "!  "
      write(4,'(a)') "! "
      write(4,'(a)') "!  "
      write(4,'(a)') '/'

      rewind(4)
      read (4,nml=indata)
      close(4)

!      write(*,*) nfp
      if (nfp /= 5) 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.