aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/streamio_17.f90
blob: 0cfdd8e15bc8b757992887a259210ccbf7b27beb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! { dg-do run }
program stream_test
implicit none
integer :: ios
character(128) :: message
open(10, status='scratch', access='stream')
write (10, rec=1, iostat=ios, iomsg=message) "This is a test" !
if (ios.ne.5001) STOP 1
if (message.ne. &
  &"Record number not allowed for stream access data transfer") &
  STOP 2
end program