summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/dev_null.f90
blob: edf93dbd1fcbd5f24e2148ab86f8e9b3d72454d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
! { dg-do run }
! pr19478 read from /dev/null
! Thomas.Koenig@online.de
      character*20 foo
      open(10,file="/dev/null")
      write(10,'(A)') "Hello"
      rewind(10)
      read(10,'(A)',end=100) foo
      call abort
 100  continue
      end