OSDN Git Service

2011-02-08 Jerry DeLisle <jvdelisle@gcc.gnu.org>
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Feb 2011 06:07:14 +0000 (06:07 +0000)
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Feb 2011 06:07:14 +0000 (06:07 +0000)
PR fortran/47583
* gfortran.dg/inquire_14.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169962 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 1ec8fd2..7da97ab 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