2008-05-30 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / f2003_io_2.f03
blob54c0516dfedfa73454c224fa6482dbaa979e1e78
1 ! { dg-do compile }
2 ! { dg-options "-std=f2003" }
3 ! Test case prepared by Jerry DeLisle  <jvdelisle@gcc.gnu.org>
5 integer :: istat, idvar
6 character(25) :: msg
7 real, dimension(10) :: a, b
9 a = 43.21
10 open(10, file='mydata', asynchronous="yes")
11 write(10,'(10f8.3)', asynchronous="yes", decimal="comma") a
12 rewind(10)
13 read(10,'(10f8.3)', asynchronous="yes", decimal="comma", id=idvar) b
14 istat = 123456
15 wait(unit=10, err=25, iostat=istat, iomsg=msg, end=35, id=idvar)
17 print *, istat
19 25 continue
21 35 continue
22 end