aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr91642.f90
blob: b3cc40f50ece48a20dba212ae89fe9f67c1f770d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
! { dg-do compile }
! PR fortran/91642
! Code contributed by Gerhard Steinmetz
program p
   integer i
   integer :: iol
   integer, external :: null
   i = 0
   inquire (iolength=iol) null()
   if (iol == 4) stop 1
end

subroutine q
   integer i
   integer :: iol
   i = 0
   inquire (iolength=iol) i, null() ! { dg-error "cannot appear in INQUIRE" }
   if (iol == 4) stop 2
end