diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/inquire_14.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/inquire_14.f90 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/inquire_14.f90 b/gcc/testsuite/gfortran.dg/inquire_14.f90 new file mode 100644 index 000000000..edc9bf388 --- /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 |