summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.fortran-torture/compile/dummyfn.f90
blob: d54f64899f3898c8dce0e3fecc8bb55fcda5d48e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! Program to test array valued dummy functions
SUBROUTINE dummyfn(deriv)
   implicit none
   INTERFACE
      FUNCTION deriv()
         REAL :: deriv(4)
      END FUNCTION deriv
   END INTERFACE

   REAL :: dx(4)

   dx = deriv()
END SUBROUTINE