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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [open_access_append_1.f90] - Rev 841

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

! { dg-do run }
! Testcase for the GNU extension OPEN(...,ACCESS="APPEND")
  open (10,file="foo")
  close (10,status="delete")

  open (10,file="foo",access="append") ! { dg-warning "Extension: ACCESS specifier in OPEN statement" }
  write (10,*) 42
  close (10,status="keep")
  open (10,file="foo",access="append") ! { dg-warning "Extension: ACCESS specifier in OPEN statement" }
  write (10,*) -42
  close (10,status="keep")

  open (10,file="foo")
  read (10,*) i
  if (i /= 42) call abort
  read (10,*) i
  if (i /= -42) call abort
  close (10,status="delete")

  end
! { dg-output ".*Extension.*Extension" } 

Go to most recent revision | 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.