view gcc/testsuite/gfortran.dg/iostat_3.f90 @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

! { dg-do compile }
! { dg-options "-std=f95" }
! Testcase for PR libfortran/25068
  real :: u
  integer(kind=8) :: i
  open (10,status="scratch")
  read (10,*,iostat=i) u ! { dg-error "Fortran 95 requires default INTEGER in IOSTAT tag" }
  close (10,iostat=i) ! { dg-error "Fortran 95 requires default INTEGER in IOSTAT tag" }
  end