repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
dev_null.F90
blob
b8ba5748593736cf65f034b3cdcd51e55b135e6b
1
! { 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