OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2010-02-10 Joost VandeVondele <jv244@cam.ac.uk>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gfortran.dg
/
dev_null.F90
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