OSDN Git Service

PR debug/43329
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gfortran.dg / pr20865.f90
1 ! { dg-do compile }
2 ! { dg-options "-std=legacy" }
3 !
4 ! PR fortran/20865
5   subroutine tt(j)
6    integer :: j
7   end subroutine
8
9   integer :: i, st
10   st(i) = (i*i+2)
11   call tt(st) ! { dg-error "Statement function .* is not allowed as an actual argument" }
12   end