OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [interface_11.f90] - Rev 694

Compare with Previous | Blame | View Log

! { dg-do compile }
! Tests the fix for PR30883 in which interface functions and
! their results did not get an implicit type.
!
! Contributed by Joost VandeVondele <jv244@cam.ac.uk>
!
MODULE M1
  IMPLICIT NONE
CONTAINS
  SUBROUTINE S1(F1, F2, G1, G2)
    INTERFACE
      FUNCTION F1(i, a)
      END FUNCTION F1
      FUNCTION F2(i, a)
        implicit complex (a-z)
      END FUNCTION F2
    END INTERFACE
    INTERFACE
      FUNCTION g1(i, a) result(z)
      END FUNCTION g1
      FUNCTION g2(i, a) result(z)
        implicit complex (a-z)
      END FUNCTION g2
    END INTERFACE
  END SUBROUTINE S1
END MODULE

END
! { dg-final { cleanup-modules "m1" } }

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.