2015-07-03 Christophe Lyon <christophe.lyon@linaro.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / iostat_3.f90
blob23492f2af654b4e2561783b8d7a668f2eb1c7606
1 ! { dg-do compile }
2 ! { dg-options "-std=f95" }
3 ! Testcase for PR libfortran/25068
4 real :: u
5 integer(kind=8) :: i
6 open (10,status="scratch")
7 read (10,*,iostat=i) u ! { dg-error "Fortran 95 requires default INTEGER in IOSTAT tag" }
8 close (10,iostat=i) ! { dg-error "Fortran 95 requires default INTEGER in IOSTAT tag" }
9 end