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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [namelist_29.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
! Checks the fix for PR30878, in which the inclusion
3
! of an implicit function result variable in a namelist
4
! would cause an error.
5
!
6
! Contributed by Joost VandeVondele 
7
!
8
  character(80) :: buffer
9
  if (f1 (buffer) .ne. 42) call abort ()
10
CONTAINS
11
   INTEGER FUNCTION F1 (buffer)
12
     NAMELIST /mynml/ F1
13
     integer :: check
14
     character(80) :: buffer
15
     F1 = 42
16
     write (buffer, nml = mynml)
17
     F1 = 0
18
     READ (buffer, nml = mynml)
19
   end function
20
END

powered by: WebSVN 2.1.0

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