re PR fortran/47583 (Inquire affected by previous read)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Wed, 9 Feb 2011 06:07:14 +0000 (06:07 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Wed, 9 Feb 2011 06:07:14 +0000 (06:07 +0000)
2011-02-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/47583
* gfortran.dg/inquire_14.f90: New test.

From-SVN: r169962

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/inquire_14.f90 [new file with mode: 0644]

index 1ec8fd246e1be72ee911b1bee60a3403fbbef18b..7da97ab91cac297d08bcba2cb53dc30d41fbdccc 100644 (file)
@@ -1,3 +1,8 @@
+2011-02-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR fortran/47583
+       * gfortran.dg/inquire_14.f90: New test.
+
 2011-02-08  Janus Weil  <janus@gcc.gnu.org>
 
        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 (file)
index 0000000..edc9bf3
--- /dev/null
@@ -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