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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

!  { dg-do run }
!  { dg-options "-fconvert=big-endian" }
program main
  character (len=30) ch
  open (10,form="unformatted",convert="little_endian") 
  inquire (10, convert=ch) 
  if (ch .ne. "LITTLE_ENDIAN") call abort
  close (10, status="delete")

  open(11,form="unformatted")
  inquire (11, convert=ch)
  if (ch .ne. "BIG_ENDIAN") call abort
  close (11, status="delete")
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.