annotate gcc/testsuite/gfortran.dg/write_to_null.F90 @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do run }
kono
parents:
diff changeset
2 ! pr18983
kono
parents:
diff changeset
3 ! could not write to /dev/null
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 #if defined _WIN32
kono
parents:
diff changeset
6 #define DEV_NULL "nul"
kono
parents:
diff changeset
7 #else
kono
parents:
diff changeset
8 #define DEV_NULL "/dev/null"
kono
parents:
diff changeset
9 #endif
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 integer i
kono
parents:
diff changeset
12 open(10,file=DEV_NULL)
kono
parents:
diff changeset
13 do i = 1,100
kono
parents:
diff changeset
14 write(10,*) "Hello, world"
kono
parents:
diff changeset
15 end do
kono
parents:
diff changeset
16 end