Commit 36eb8874 by Steven G. Kargl

re PR fortran/20846 (inquire(FILE=..., UNIT=...) not flagged as error)

PR fortran/20846
* gfortran.dg/inquire_8.f90: New test.

From-SVN: r100339
parent 44998b65
2005-05-30 Steven G. Kargl
PR fortran/20846
* gfortran.dg/inquire_8.f90: New test.
2005-05-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
PR libfortran/21376
......
! { dg-do compile }
! fortran/pr20846
program inquire_8
character(len=20) :: n = 'data'
integer :: d = 23
logical a
inquire(file=n,unit=d,opened=a) ! { dg-error "contain both FILE and UNIT" }
inquire(unit=d,file=n,opened=a) ! { dg-error "contain both FILE and UNIT" }
inquire(opened=a) ! { dg-error "requires either FILE or UNIT" }
end program inquire_8
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment