blob: 6ce5951b53a1d5515451336b8d0506541ee967d0 [file] [log] [blame]
! { dg-do compile }
! PR fortran/69604
! Contributed by G.Steinmetz
program p
x(n) = 1 + n(2.0) ! { dg-error "Invalid use of statement function argument" }
y(k) = k() ! { dg-error "Invalid use of statement function argument" }
z(m) = m ! { dg-warning "Statement function" }
print *, x(n)
end