From 88c98057c8122dc4bb768fb66ca3fa445f427db3 Mon Sep 17 00:00:00 2001 From: Jerry DeLisle Date: Wed, 9 Feb 2011 06:07:14 +0000 Subject: [PATCH] re PR fortran/47583 (Inquire affected by previous read) 2011-02-08 Jerry DeLisle PR fortran/47583 * gfortran.dg/inquire_14.f90: New test. From-SVN: r169962 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gfortran.dg/inquire_14.f90 | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 gcc/testsuite/gfortran.dg/inquire_14.f90 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1ec8fd246e1..7da97ab91ca 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-02-08 Jerry DeLisle + + PR fortran/47583 + * gfortran.dg/inquire_14.f90: New test. + 2011-02-08 Janus Weil PR fortran/45290 diff --git a/gcc/testsuite/gfortran.dg/inquire_14.f90 b/gcc/testsuite/gfortran.dg/inquire_14.f90 new file mode 100644 index 00000000000..edc9bf388a4 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/inquire_14.f90 @@ -0,0 +1,13 @@ +! { dg-do compile } +! PR47583 Inquire affected by previous read. +subroutine input(indat) + real indat(:) + read(*,*) indat +end subroutine input + +subroutine abc(sizedat) + real, intent(in) :: sizedat(:) + integer :: rl + inquire(iolength=rl) sizedat + write(*,*) rl +end subroutine abc