2015-07-03 Christophe Lyon <christophe.lyon@linaro.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / write_to_null.F90
blobbce1db03a7fadd9d67833ce4d3246e0cc80170f3
1 ! { dg-do run }
2 ! pr18983
3 ! could not write to /dev/null
5 #if defined  _WIN32
6 #define DEV_NULL "nul"
7 #else
8 #define DEV_NULL "/dev/null"
9 #endif
11        integer i
12        open(10,file=DEV_NULL)
13        do i = 1,100
14          write(10,*) "Hello, world"
15        end do
16        end