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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

! { dg-do run }
! { dg-options "-frecord-marker=4" }

program main
  implicit none
  integer(kind=4) :: i1, i2, i3

  open(15,form="UNFORMATTED")
  write (15) 1_4
  close (15)
  open (15,form="UNFORMATTED",access="DIRECT",recl=4)
  i1 = 1_4
  i2 = 2_4
  i3 = 3_4
  read (15,rec=1) i1
  read (15,rec=2) i2
  read (15,rec=3) i3
  close (15, status="DELETE")
  if (i1 /= 4_4) call abort
  if (i2 /= 1_4) call abort
  if (i3 /= 4_4) call abort

  open(15,form="UNFORMATTED",convert="SWAP")
  write (15) 1_4
  close (15)
  open (15,form="UNFORMATTED",access="DIRECT",convert="SWAP",recl=4)
  i1 = 1_4
  i2 = 2_4
  i3 = 3_4
  read (15,rec=1) i1
  read (15,rec=2) i2
  read (15,rec=3) i3
  close(15,status="DELETE")
  if (i1 /= 4_4) call abort
  if (i2 /= 1_4) call abort
  if (i3 /= 4_4) call abort

end program main

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.