gcc/testsuite/gfortran.dg/statement_function_4.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! PR fortran/69604 |
| 3 | ! Contributed by G.Steinmetz |
| 4 | |
| 5 | program p |
| 6 | x(n) = 1 + n(2.0) ! { dg-error "Invalid use of statement function argument" } |
| 7 | y(k) = k() ! { dg-error "Invalid use of statement function argument" } |
| 8 | z(m) = m ! { dg-warning "Statement function" } |
| 9 | print *, x(n) |
| 10 | end |