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
2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
write_to_null.F90
blob
bce1db03a7fadd9d67833ce4d3246e0cc80170f3
1
! { dg-do run }
2
! pr18983
3
! could not write to /dev/null
4
5
#if defined _WIN32
6
#define DEV_NULL "nul"
7
#else
8
#define DEV_NULL "/dev/null"
9
#endif
10
11
integer i
12
open(10,file=DEV_NULL)
13
do i = 1,100
14
write(10,*) "Hello, world"
15
end do
16
end