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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [dev_null.F90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! { dg-options "-std=legacy" }
3
!
4
! pr19478 read from /dev/null
5
! Thomas.Koenig@online.de
6
#if defined  _WIN32
7
#define DEV_NULL "nul"
8
#else
9
#define DEV_NULL "/dev/null"
10
#endif
11
      character*20 foo
12
      open(10,file=DEV_NULL)
13
      write(10,'(A)') "Hello"
14
      rewind(10)
15
      read(10,'(A)',end=100) foo
16
      call abort
17
 100  continue
18
      end

powered by: WebSVN 2.1.0

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