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] - Blame information for rev 774

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
!
3
! PR fortran/50109
4
!
5
! Contributed by Jim Hanson
6
!
7
      program namelist_test
8
 
9
      integer nfp
10
      namelist /indata/ nfp
11
 
12
      nfp = 99
13
      open(unit=4, status='scratch')
14
      write(4,'(a)') '$indata'
15
      write(4,'(a)') 'NFP = 5,'
16
      write(4,'(a)') "!  "
17
      write(4,'(a)') "! "
18
      write(4,'(a)') "!  "
19
      write(4,'(a)') '/'
20
 
21
      rewind(4)
22
      read (4,nml=indata)
23
      close(4)
24
 
25
!      write(*,*) nfp
26
      if (nfp /= 5) call abort()
27
 
28
      end

powered by: WebSVN 2.1.0

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