Merge from mainline (160224:163495).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gfortran.dg / pr20865.f90
blobe99eb0bedbfd8e5bc6cdf5063c5a3ae40fc2a385
1 ! { dg-do compile }
2 ! { dg-options "-std=legacy" }
4 ! PR fortran/20865
5 subroutine tt(j)
6 integer :: j
7 end subroutine
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|Invalid procedure argument" }
12 end