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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [pr18392.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
! pr 18392
3
! test namelist with derived types
4
! Based on example provided by thomas.koenig@online.de
5
 
6
program pr18392
7
  implicit none
8
  type foo
9
     integer a
10
     real b
11
  end type foo
12
  type(foo) :: a
13
  namelist /nl/ a
14
  open (10, status="scratch")
15
  write (10,*) " &NL"
16
  write (10,*) " A%A = 10,"
17
  write (10,*) "/"
18
  rewind (10)
19
  read (10,nl)
20
  close (10)
21
  IF (a%a /= 10.0) call abort ()
22
end program pr18392

powered by: WebSVN 2.1.0

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